From 8f6b372ad1d4d2f28cc3edf87aefe85ff0d66a99 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Wed, 30 Aug 2023 18:38:25 +0000
Subject: [PATCH] feat: [networkmanagement] add new enum values for network
firewall policies to API (#9749)
- [ ] Regenerate this pull request now.
PiperOrigin-RevId: 555590152
Source-Link: https://togithub.com/googleapis/googleapis/commit/fae3e6e091418d6343902debaf545cfc8f32c3ff
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/d1a18e4ca675fa8d485b4bf49d4f0ed8e9b66d7b
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImQxYTE4ZTRjYTY3NWZhOGQ0ODViNGJmNDlkNGYwZWQ4ZTliNjZkN2IifQ==
BEGIN_NESTED_COMMIT
feat: [networkmanagement] add fields related to Google services to API
PiperOrigin-RevId: 555584241
Source-Link: https://togithub.com/googleapis/googleapis/commit/2d1ca1b39f0962ea3fc454535f08d87d312e545c
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/8bf0915bac14ba56ef853cf53a999093c8fb8441
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6IjhiZjA5MTViYWMxNGJhNTZlZjg1M2NmNTNhOTk5MDkzYzhmYjg0NDEifQ==
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [networkmanagement] add fields related to PBR and NCC routes to API
PiperOrigin-RevId: 555412817
Source-Link: https://togithub.com/googleapis/googleapis/commit/92435df75a611c473b104232704213b5f1065426
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/33718924ddc3b450af7c59a41e651a4305d17a2b
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6IjMzNzE4OTI0ZGRjM2I0NTBhZjdjNTlhNDFlNjUxYTQzMDVkMTdhMmIifQ==
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [networkmanagement] add new abort and drop causes to API
PiperOrigin-RevId: 555409746
Source-Link: https://togithub.com/googleapis/googleapis/commit/76abecc3c6b7d431f94fa3cdaa233e99f8857c84
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/f2edcb3c558c40b376b526cae555213c20f7b1a8
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImYyZWRjYjNjNTU4YzQwYjM3NmI1MjZjYWU1NTUyMTNjMjBmN2IxYTgifQ==
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [networkmanagement] add fields related to load balancers to API
PiperOrigin-RevId: 555407973
Source-Link: https://togithub.com/googleapis/googleapis/commit/ecf3eb11ea33aa7eb77ea71a960db305a5dc76a0
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/81673ce8e74f7b08b628df993ef0a4c0d2a4268d
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6IjgxNjczY2U4ZTc0ZjdiMDhiNjI4ZGY5OTNlZjBhNGMwZDJhNDI2OGQifQ==
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [networkmanagement] add dynamic probing fields to v1 API
PiperOrigin-RevId: 555400116
Source-Link: https://togithub.com/googleapis/googleapis/commit/4f43e4b07fd3e742b1e115dab96f1a40c4738e9a
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/0c74f5801fe6960647913d073f62f46a4902a13c
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6IjBjNzRmNTgwMWZlNjk2MDY0NzkxM2QwNzNmNjJmNDZhNDkwMmExM2MifQ==
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
build: [networkmanagement] do not create bazel-* symlinks
PiperOrigin-RevId: 555307834
Source-Link: https://togithub.com/googleapis/googleapis/commit/43f02766add4ac5e2e6557a9d2600f2101654dff
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/f340c3f9408f87a93ab676233181b2738de4a9fe
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImYzNDBjM2Y5NDA4Zjg3YTkzYWI2NzYyMzMxODFiMjczOGRlNGE5ZmUifQ==
END_NESTED_COMMIT
---
java-network-management/README.md | 4 +-
.../reflect-config.json | 270 +
.../reflect-config.json | 126 +
...ReachabilityServiceClientHttpJsonTest.java | 6 +
.../v1/ReachabilityServiceClientTest.java | 4 +
.../cloud/networkmanagement/v1/AbortInfo.java | 144 +
.../v1/AppEngineVersionInfo.java | 1171 ++++
.../v1/AppEngineVersionInfoOrBuilder.java | 125 +
.../v1/CloudFunctionInfo.java | 1082 +++
.../v1/CloudFunctionInfoOrBuilder.java | 113 +
.../v1/CloudRunRevisionInfo.java | 1171 ++++
.../v1/CloudRunRevisionInfoOrBuilder.java | 125 +
.../v1/ConnectivityTest.java | 343 +-
.../v1/ConnectivityTestOrBuilder.java | 54 +-
.../networkmanagement/v1/DeliverInfo.java | 94 +
.../cloud/networkmanagement/v1/DropInfo.java | 424 ++
.../cloud/networkmanagement/v1/Endpoint.java | 6164 +++++++++++++----
.../networkmanagement/v1/EndpointInfo.java | 182 +
.../v1/EndpointInfoOrBuilder.java | 25 +
.../v1/EndpointOrBuilder.java | 264 +-
.../networkmanagement/v1/FirewallInfo.java | 80 +
.../networkmanagement/v1/ForwardInfo.java | 44 +
.../v1/GoogleServiceInfo.java | 1008 +++
.../v1/GoogleServiceInfoOrBuilder.java | 79 +
.../networkmanagement/v1/InstanceInfo.java | 14 +-
.../v1/InstanceInfoOrBuilder.java | 4 +-
.../v1/LatencyDistribution.java | 984 +++
.../v1/LatencyDistributionOrBuilder.java | 84 +
.../v1/LatencyPercentile.java | 636 ++
.../v1/LatencyPercentileOrBuilder.java | 53 +
.../v1/LoadBalancerInfo.java | 22 +
.../v1/LoadBalancerType.java | 356 +
.../networkmanagement/v1/ProbingDetails.java | 3426 +++++++++
.../v1/ProbingDetailsOrBuilder.java | 306 +
.../cloud/networkmanagement/v1/RouteInfo.java | 3633 +++++++---
.../v1/RouteInfoOrBuilder.java | 297 +-
.../cloud/networkmanagement/v1/Step.java | 1792 ++++-
.../networkmanagement/v1/StepOrBuilder.java | 177 +
.../networkmanagement/v1/TestOuterClass.java | 217 +-
.../networkmanagement/v1/TraceProto.java | 502 +-
.../v1/VpcConnectorInfo.java | 989 +++
.../v1/VpcConnectorInfoOrBuilder.java | 100 +
.../v1/connectivity_test.proto | 176 +-
.../cloud/networkmanagement/v1/trace.proto | 353 +-
.../networkmanagement/v1beta1/AbortInfo.java | 144 +
.../v1beta1/AppEngineVersionInfo.java | 1178 ++++
.../AppEngineVersionInfoOrBuilder.java | 125 +
.../v1beta1/CloudFunctionInfo.java | 54 +-
.../v1beta1/CloudFunctionInfoOrBuilder.java | 14 +-
.../v1beta1/CloudRunRevisionInfo.java | 1178 ++++
.../CloudRunRevisionInfoOrBuilder.java | 125 +
.../v1beta1/DeliverInfo.java | 34 +-
.../networkmanagement/v1beta1/DropInfo.java | 344 +-
.../networkmanagement/v1beta1/Endpoint.java | 5637 +++++++++++----
.../v1beta1/EndpointOrBuilder.java | 228 +-
.../v1beta1/FirewallInfo.java | 52 +
.../v1beta1/ForwardInfo.java | 44 +
.../v1beta1/GoogleServiceInfo.java | 1015 +++
.../v1beta1/GoogleServiceInfoOrBuilder.java | 80 +
.../v1beta1/InstanceInfo.java | 14 +-
.../v1beta1/InstanceInfoOrBuilder.java | 4 +-
.../v1beta1/LoadBalancerInfo.java | 22 +
.../v1beta1/LoadBalancerType.java | 358 +
.../networkmanagement/v1beta1/RouteInfo.java | 3642 +++++++---
.../v1beta1/RouteInfoOrBuilder.java | 297 +-
.../cloud/networkmanagement/v1beta1/Step.java | 1172 +++-
.../v1beta1/StepOrBuilder.java | 119 +-
.../v1beta1/TestOuterClass.java | 162 +-
.../networkmanagement/v1beta1/TraceProto.java | 528 +-
.../v1beta1/connectivity_test.proto | 65 +-
.../networkmanagement/v1beta1/trace.proto | 306 +-
71 files changed, 39009 insertions(+), 5155 deletions(-)
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AppEngineVersionInfo.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AppEngineVersionInfoOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudFunctionInfo.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudFunctionInfoOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunRevisionInfo.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunRevisionInfoOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GoogleServiceInfo.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GoogleServiceInfoOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyDistribution.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyDistributionOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyPercentile.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyPercentileOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerType.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetails.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetailsOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcConnectorInfo.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcConnectorInfoOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AppEngineVersionInfo.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AppEngineVersionInfoOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudRunRevisionInfo.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudRunRevisionInfoOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GoogleServiceInfo.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GoogleServiceInfoOrBuilder.java
create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerType.java
diff --git a/java-network-management/README.md b/java-network-management/README.md
index 923f0df1a547..24a0543fe904 100644
--- a/java-network-management/README.md
+++ b/java-network-management/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
UNSUPPORTED = 15;
*/
UNSUPPORTED(15),
+ /**
+ *
+ *
+ *
+ * Aborted because the source and destination resources have no common IP + * version. + *+ * + *
MISMATCHED_IP_VERSION = 16;
+ */
+ MISMATCHED_IP_VERSION(16),
+ /**
+ *
+ *
+ * + * Aborted because the connection between the control plane and the node of + * the source cluster is initiated by the node and managed by the + * Konnectivity proxy. + *+ * + *
GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17;
+ */
+ GKE_KONNECTIVITY_PROXY_UNSUPPORTED(17),
+ /**
+ *
+ *
+ * + * Aborted because expected resource configuration was missing. + *+ * + *
RESOURCE_CONFIG_NOT_FOUND = 18;
+ */
+ RESOURCE_CONFIG_NOT_FOUND(18),
+ /**
+ *
+ *
+ * + * Aborted because a PSC endpoint selection for the Google-managed service + * is ambiguous (several PSC endpoints satisfy test input). + *+ * + *
GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19;
+ */
+ GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT(19),
+ /**
+ *
+ *
+ * + * Aborted because tests with a PSC-based Cloud SQL instance as a source are + * not supported. + *+ * + *
SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20;
+ */
+ SOURCE_PSC_CLOUD_SQL_UNSUPPORTED(20),
+ /**
+ *
+ *
+ * + * Aborted because tests with a forwarding rule as a source are not + * supported. + *+ * + *
SOURCE_FORWARDING_RULE_UNSUPPORTED = 21;
+ */
+ SOURCE_FORWARDING_RULE_UNSUPPORTED(21),
UNRECOGNIZED(-1),
;
@@ -427,6 +493,72 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* UNSUPPORTED = 15;
*/
public static final int UNSUPPORTED_VALUE = 15;
+ /**
+ *
+ *
+ * + * Aborted because the source and destination resources have no common IP + * version. + *+ * + *
MISMATCHED_IP_VERSION = 16;
+ */
+ public static final int MISMATCHED_IP_VERSION_VALUE = 16;
+ /**
+ *
+ *
+ * + * Aborted because the connection between the control plane and the node of + * the source cluster is initiated by the node and managed by the + * Konnectivity proxy. + *+ * + *
GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17;
+ */
+ public static final int GKE_KONNECTIVITY_PROXY_UNSUPPORTED_VALUE = 17;
+ /**
+ *
+ *
+ * + * Aborted because expected resource configuration was missing. + *+ * + *
RESOURCE_CONFIG_NOT_FOUND = 18;
+ */
+ public static final int RESOURCE_CONFIG_NOT_FOUND_VALUE = 18;
+ /**
+ *
+ *
+ * + * Aborted because a PSC endpoint selection for the Google-managed service + * is ambiguous (several PSC endpoints satisfy test input). + *+ * + *
GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19;
+ */
+ public static final int GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT_VALUE = 19;
+ /**
+ *
+ *
+ * + * Aborted because tests with a PSC-based Cloud SQL instance as a source are + * not supported. + *+ * + *
SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20;
+ */
+ public static final int SOURCE_PSC_CLOUD_SQL_UNSUPPORTED_VALUE = 20;
+ /**
+ *
+ *
+ * + * Aborted because tests with a forwarding rule as a source are not + * supported. + *+ * + *
SOURCE_FORWARDING_RULE_UNSUPPORTED = 21;
+ */
+ public static final int SOURCE_FORWARDING_RULE_UNSUPPORTED_VALUE = 21;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -484,6 +616,18 @@ public static Cause forNumber(int value) {
return MISMATCHED_DESTINATION_NETWORK;
case 15:
return UNSUPPORTED;
+ case 16:
+ return MISMATCHED_IP_VERSION;
+ case 17:
+ return GKE_KONNECTIVITY_PROXY_UNSUPPORTED;
+ case 18:
+ return RESOURCE_CONFIG_NOT_FOUND;
+ case 19:
+ return GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT;
+ case 20:
+ return SOURCE_PSC_CLOUD_SQL_UNSUPPORTED;
+ case 21:
+ return SOURCE_FORWARDING_RULE_UNSUPPORTED;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AppEngineVersionInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AppEngineVersionInfo.java
new file mode 100644
index 000000000000..29d5f5537754
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AppEngineVersionInfo.java
@@ -0,0 +1,1171 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1/trace.proto
+
+package com.google.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ * + * For display only. Metadata associated with an App Engine version. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.AppEngineVersionInfo} + */ +public final class AppEngineVersionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.AppEngineVersionInfo) + AppEngineVersionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppEngineVersionInfo.newBuilder() to construct. + private AppEngineVersionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AppEngineVersionInfo() { + displayName_ = ""; + uri_ = ""; + runtime_ = ""; + environment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AppEngineVersionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.class, + com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+ * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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 URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RUNTIME_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object runtime_ = "";
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The runtime.
+ */
+ @java.lang.Override
+ public java.lang.String getRuntime() {
+ java.lang.Object ref = runtime_;
+ 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();
+ runtime_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The bytes for runtime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRuntimeBytes() {
+ java.lang.Object ref = runtime_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ runtime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENVIRONMENT_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object environment_ = "";
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The environment.
+ */
+ @java.lang.Override
+ public java.lang.String getEnvironment() {
+ java.lang.Object ref = environment_;
+ 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();
+ environment_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The bytes for environment.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEnvironmentBytes() {
+ java.lang.Object ref = environment_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ environment_ = 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.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, runtime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, environment_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, runtime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, environment_);
+ }
+ 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.networkmanagement.v1.AppEngineVersionInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo other =
+ (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getRuntime().equals(other.getRuntime())) return false;
+ if (!getEnvironment().equals(other.getEnvironment())) 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) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + RUNTIME_FIELD_NUMBER;
+ hash = (53 * hash) + getRuntime().hashCode();
+ hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getEnvironment().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo 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.networkmanagement.v1.AppEngineVersionInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo 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.networkmanagement.v1.AppEngineVersionInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.AppEngineVersionInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * For display only. Metadata associated with an App Engine version. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.AppEngineVersionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object runtime_ = "";
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The runtime.
+ */
+ public java.lang.String getRuntime() {
+ java.lang.Object ref = runtime_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ runtime_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The bytes for runtime.
+ */
+ public com.google.protobuf.ByteString getRuntimeBytes() {
+ java.lang.Object ref = runtime_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ runtime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @param value The runtime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRuntime(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ runtime_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRuntime() {
+ runtime_ = getDefaultInstance().getRuntime();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @param value The bytes for runtime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRuntimeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ runtime_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object environment_ = "";
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The environment.
+ */
+ public java.lang.String getEnvironment() {
+ java.lang.Object ref = environment_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ environment_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The bytes for environment.
+ */
+ public com.google.protobuf.ByteString getEnvironmentBytes() {
+ java.lang.Object ref = environment_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ environment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @param value The environment to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnvironment(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ environment_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnvironment() {
+ environment_ = getDefaultInstance().getEnvironment();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @param value The bytes for environment to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ environment_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.AppEngineVersionInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.AppEngineVersionInfo)
+ private static final com.google.cloud.networkmanagement.v1.AppEngineVersionInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.AppEngineVersionInfo();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.AppEngineVersionInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The runtime.
+ */
+ java.lang.String getRuntime();
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The bytes for runtime.
+ */
+ com.google.protobuf.ByteString getRuntimeBytes();
+
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The environment.
+ */
+ java.lang.String getEnvironment();
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The bytes for environment.
+ */
+ com.google.protobuf.ByteString getEnvironmentBytes();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudFunctionInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudFunctionInfo.java
new file mode 100644
index 000000000000..5b58496a79ab
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudFunctionInfo.java
@@ -0,0 +1,1082 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1/trace.proto
+
+package com.google.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ * + * For display only. Metadata associated with a Cloud Function. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.CloudFunctionInfo} + */ +public final class CloudFunctionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.CloudFunctionInfo) + CloudFunctionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudFunctionInfo.newBuilder() to construct. + private CloudFunctionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudFunctionInfo() { + displayName_ = ""; + uri_ = ""; + location_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudFunctionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.CloudFunctionInfo.class, + com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+ * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @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 URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOCATION_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object location_ = "";
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @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 VERSION_ID_FIELD_NUMBER = 4;
+ private long versionId_ = 0L;
+ /**
+ *
+ *
+ * + * Latest successfully deployed version id of the Cloud Function. + *+ * + *
int64 version_id = 4;
+ *
+ * @return The versionId.
+ */
+ @java.lang.Override
+ public long getVersionId() {
+ return versionId_;
+ }
+
+ 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.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, location_);
+ }
+ if (versionId_ != 0L) {
+ output.writeInt64(4, versionId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, location_);
+ }
+ if (versionId_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, versionId_);
+ }
+ 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.networkmanagement.v1.CloudFunctionInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo other =
+ (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getLocation().equals(other.getLocation())) return false;
+ if (getVersionId() != other.getVersionId()) 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) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getLocation().hashCode();
+ hash = (37 * hash) + VERSION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionId());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo 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.networkmanagement.v1.CloudFunctionInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo 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.networkmanagement.v1.CloudFunctionInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.CloudFunctionInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * For display only. Metadata associated with a Cloud Function. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.CloudFunctionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object location_ = "";
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLocation() {
+ location_ = getDefaultInstance().getLocation();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private long versionId_;
+ /**
+ *
+ *
+ * + * Latest successfully deployed version id of the Cloud Function. + *+ * + *
int64 version_id = 4;
+ *
+ * @return The versionId.
+ */
+ @java.lang.Override
+ public long getVersionId() {
+ return versionId_;
+ }
+ /**
+ *
+ *
+ * + * Latest successfully deployed version id of the Cloud Function. + *+ * + *
int64 version_id = 4;
+ *
+ * @param value The versionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersionId(long value) {
+
+ versionId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Latest successfully deployed version id of the Cloud Function. + *+ * + *
int64 version_id = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVersionId() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ versionId_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.CloudFunctionInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.CloudFunctionInfo)
+ private static final com.google.cloud.networkmanagement.v1.CloudFunctionInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.CloudFunctionInfo();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudFunctionInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ * + * Name of a Cloud Function. + *+ * + *
string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * URI of a Cloud Function. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @return The location.
+ */
+ java.lang.String getLocation();
+ /**
+ *
+ *
+ * + * Location in which the Cloud Function is deployed. + *+ * + *
string location = 3;
+ *
+ * @return The bytes for location.
+ */
+ com.google.protobuf.ByteString getLocationBytes();
+
+ /**
+ *
+ *
+ * + * Latest successfully deployed version id of the Cloud Function. + *+ * + *
int64 version_id = 4;
+ *
+ * @return The versionId.
+ */
+ long getVersionId();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunRevisionInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunRevisionInfo.java
new file mode 100644
index 000000000000..f9bb3924177e
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunRevisionInfo.java
@@ -0,0 +1,1171 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1/trace.proto
+
+package com.google.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ * + * For display only. Metadata associated with a Cloud Run revision. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.CloudRunRevisionInfo} + */ +public final class CloudRunRevisionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.CloudRunRevisionInfo) + CloudRunRevisionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudRunRevisionInfo.newBuilder() to construct. + private CloudRunRevisionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudRunRevisionInfo() { + displayName_ = ""; + uri_ = ""; + location_ = ""; + serviceUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudRunRevisionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.class, + com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+ * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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 URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOCATION_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object location_ = "";
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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 SERVICE_URI_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object serviceUri_ = "";
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The serviceUri.
+ */
+ @java.lang.Override
+ public java.lang.String getServiceUri() {
+ java.lang.Object ref = serviceUri_;
+ 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();
+ serviceUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The bytes for serviceUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getServiceUriBytes() {
+ java.lang.Object ref = serviceUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceUri_ = 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.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceUri_);
+ }
+ 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.networkmanagement.v1.CloudRunRevisionInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo other =
+ (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getLocation().equals(other.getLocation())) return false;
+ if (!getServiceUri().equals(other.getServiceUri())) 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) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getLocation().hashCode();
+ hash = (37 * hash) + SERVICE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo 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.networkmanagement.v1.CloudRunRevisionInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo 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.networkmanagement.v1.CloudRunRevisionInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.CloudRunRevisionInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * For display only. Metadata associated with a Cloud Run revision. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.CloudRunRevisionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object location_ = "";
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLocation() {
+ location_ = getDefaultInstance().getLocation();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceUri_ = "";
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The serviceUri.
+ */
+ public java.lang.String getServiceUri() {
+ java.lang.Object ref = serviceUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The bytes for serviceUri.
+ */
+ public com.google.protobuf.ByteString getServiceUriBytes() {
+ java.lang.Object ref = serviceUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @param value The serviceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ serviceUri_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceUri() {
+ serviceUri_ = getDefaultInstance().getServiceUri();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @param value The bytes for serviceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ serviceUri_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.CloudRunRevisionInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.CloudRunRevisionInfo)
+ private static final com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @return The location.
+ */
+ java.lang.String getLocation();
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @return The bytes for location.
+ */
+ com.google.protobuf.ByteString getLocationBytes();
+
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The serviceUri.
+ */
+ java.lang.String getServiceUri();
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The bytes for serviceUri.
+ */
+ com.google.protobuf.ByteString getServiceUriBytes();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTest.java
index 509b26ae1195..bc0fe75f9f0b 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTest.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTest.java
@@ -86,7 +86,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -110,7 +110,7 @@ public java.lang.String getName() {
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -842,6 +842,72 @@ public com.google.cloud.networkmanagement.v1.ReachabilityDetails getReachability
: reachabilityDetails_;
}
+ public static final int PROBING_DETAILS_FIELD_NUMBER = 14;
+ private com.google.cloud.networkmanagement.v1.ProbingDetails probingDetails_;
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the probingDetails field is set.
+ */
+ @java.lang.Override
+ public boolean hasProbingDetails() {
+ return probingDetails_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The probingDetails.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.ProbingDetails getProbingDetails() {
+ return probingDetails_ == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance()
+ : probingDetails_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.ProbingDetailsOrBuilder
+ getProbingDetailsOrBuilder() {
+ return probingDetails_ == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance()
+ : probingDetails_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -888,6 +954,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (reachabilityDetails_ != null) {
output.writeMessage(12, getReachabilityDetails());
}
+ if (probingDetails_ != null) {
+ output.writeMessage(14, getProbingDetails());
+ }
getUnknownFields().writeTo(output);
}
@@ -943,6 +1012,9 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReachabilityDetails());
}
+ if (probingDetails_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getProbingDetails());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -985,6 +1057,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasReachabilityDetails()) {
if (!getReachabilityDetails().equals(other.getReachabilityDetails())) return false;
}
+ if (hasProbingDetails() != other.hasProbingDetails()) return false;
+ if (hasProbingDetails()) {
+ if (!getProbingDetails().equals(other.getProbingDetails())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1032,6 +1108,10 @@ public int hashCode() {
hash = (37 * hash) + REACHABILITY_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getReachabilityDetails().hashCode();
}
+ if (hasProbingDetails()) {
+ hash = (37 * hash) + PROBING_DETAILS_FIELD_NUMBER;
+ hash = (53 * hash) + getProbingDetails().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1223,6 +1303,11 @@ public Builder clear() {
reachabilityDetailsBuilder_.dispose();
reachabilityDetailsBuilder_ = null;
}
+ probingDetails_ = null;
+ if (probingDetailsBuilder_ != null) {
+ probingDetailsBuilder_.dispose();
+ probingDetailsBuilder_ = null;
+ }
return this;
}
@@ -1298,6 +1383,10 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.ConnectivityTes
? reachabilityDetails_
: reachabilityDetailsBuilder_.build();
}
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.probingDetails_ =
+ probingDetailsBuilder_ == null ? probingDetails_ : probingDetailsBuilder_.build();
+ }
}
@java.lang.Override
@@ -1393,6 +1482,9 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.ConnectivityTest
if (other.hasReachabilityDetails()) {
mergeReachabilityDetails(other.getReachabilityDetails());
}
+ if (other.hasProbingDetails()) {
+ mergeProbingDetails(other.getProbingDetails());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1493,6 +1585,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000400;
break;
} // case 98
+ case 114:
+ {
+ input.readMessage(getProbingDetailsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 114
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1518,7 +1616,7 @@ public Builder mergeFrom(
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1541,7 +1639,7 @@ public java.lang.String getName() {
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1564,7 +1662,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1586,7 +1684,7 @@ public Builder setName(java.lang.String value) {
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1604,7 +1702,7 @@ public Builder clearName() {
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -3666,6 +3764,237 @@ public Builder clearReachabilityDetails() {
return reachabilityDetailsBuilder_;
}
+ private com.google.cloud.networkmanagement.v1.ProbingDetails probingDetails_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.ProbingDetails,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.Builder,
+ com.google.cloud.networkmanagement.v1.ProbingDetailsOrBuilder>
+ probingDetailsBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the probingDetails field is set.
+ */
+ public boolean hasProbingDetails() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The probingDetails.
+ */
+ public com.google.cloud.networkmanagement.v1.ProbingDetails getProbingDetails() {
+ if (probingDetailsBuilder_ == null) {
+ return probingDetails_ == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance()
+ : probingDetails_;
+ } else {
+ return probingDetailsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setProbingDetails(com.google.cloud.networkmanagement.v1.ProbingDetails value) {
+ if (probingDetailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ probingDetails_ = value;
+ } else {
+ probingDetailsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setProbingDetails(
+ com.google.cloud.networkmanagement.v1.ProbingDetails.Builder builderForValue) {
+ if (probingDetailsBuilder_ == null) {
+ probingDetails_ = builderForValue.build();
+ } else {
+ probingDetailsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeProbingDetails(com.google.cloud.networkmanagement.v1.ProbingDetails value) {
+ if (probingDetailsBuilder_ == null) {
+ if (((bitField0_ & 0x00000800) != 0)
+ && probingDetails_ != null
+ && probingDetails_
+ != com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance()) {
+ getProbingDetailsBuilder().mergeFrom(value);
+ } else {
+ probingDetails_ = value;
+ }
+ } else {
+ probingDetailsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearProbingDetails() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ probingDetails_ = null;
+ if (probingDetailsBuilder_ != null) {
+ probingDetailsBuilder_.dispose();
+ probingDetailsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.Builder getProbingDetailsBuilder() {
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return getProbingDetailsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.ProbingDetailsOrBuilder
+ getProbingDetailsOrBuilder() {
+ if (probingDetailsBuilder_ != null) {
+ return probingDetailsBuilder_.getMessageOrBuilder();
+ } else {
+ return probingDetails_ == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance()
+ : probingDetails_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.ProbingDetails,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.Builder,
+ com.google.cloud.networkmanagement.v1.ProbingDetailsOrBuilder>
+ getProbingDetailsFieldBuilder() {
+ if (probingDetailsBuilder_ == null) {
+ probingDetailsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.ProbingDetails,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.Builder,
+ com.google.cloud.networkmanagement.v1.ProbingDetailsOrBuilder>(
+ getProbingDetails(), getParentForChildren(), isClean());
+ probingDetails_ = null;
+ }
+ return probingDetailsBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java
index f726605dc420..ae3390e29568 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java
@@ -28,7 +28,7 @@ public interface ConnectivityTestOrBuilder
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -41,7 +41,7 @@ public interface ConnectivityTestOrBuilder
*
* * Required. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * `projects/{project_id}/locations/global/connectivityTests/{test}` ** *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -559,4 +559,54 @@ java.lang.String getLabelsOrDefault(
*/
com.google.cloud.networkmanagement.v1.ReachabilityDetailsOrBuilder
getReachabilityDetailsOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the probingDetails field is set.
+ */
+ boolean hasProbingDetails();
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The probingDetails.
+ */
+ com.google.cloud.networkmanagement.v1.ProbingDetails getProbingDetails();
+ /**
+ *
+ *
+ * + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.networkmanagement.v1.ProbingDetailsOrBuilder getProbingDetailsOrBuilder();
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java
index c17733129f32..78e13584c810 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java
@@ -133,6 +133,49 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
* CLOUD_SQL_INSTANCE = 5;
*/
CLOUD_SQL_INSTANCE(5),
+ /**
+ *
+ *
+ * + * Target is a published service that uses [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). + *+ * + *
PSC_PUBLISHED_SERVICE = 6;
+ */
+ PSC_PUBLISHED_SERVICE(6),
+ /**
+ *
+ *
+ * + * Target is all Google APIs that use [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). + *+ * + *
PSC_GOOGLE_API = 7;
+ */
+ PSC_GOOGLE_API(7),
+ /**
+ *
+ *
+ * + * Target is a VPC-SC that uses [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). + *+ * + *
PSC_VPC_SC = 8;
+ */
+ PSC_VPC_SC(8),
+ /**
+ *
+ *
+ * + * Target is a serverless network endpoint group. + *+ * + *
SERVERLESS_NEG = 9;
+ */
+ SERVERLESS_NEG(9),
UNRECOGNIZED(-1),
;
@@ -196,6 +239,49 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
* CLOUD_SQL_INSTANCE = 5;
*/
public static final int CLOUD_SQL_INSTANCE_VALUE = 5;
+ /**
+ *
+ *
+ * + * Target is a published service that uses [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). + *+ * + *
PSC_PUBLISHED_SERVICE = 6;
+ */
+ public static final int PSC_PUBLISHED_SERVICE_VALUE = 6;
+ /**
+ *
+ *
+ * + * Target is all Google APIs that use [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). + *+ * + *
PSC_GOOGLE_API = 7;
+ */
+ public static final int PSC_GOOGLE_API_VALUE = 7;
+ /**
+ *
+ *
+ * + * Target is a VPC-SC that uses [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). + *+ * + *
PSC_VPC_SC = 8;
+ */
+ public static final int PSC_VPC_SC_VALUE = 8;
+ /**
+ *
+ *
+ * + * Target is a serverless network endpoint group. + *+ * + *
SERVERLESS_NEG = 9;
+ */
+ public static final int SERVERLESS_NEG_VALUE = 9;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -233,6 +319,14 @@ public static Target forNumber(int value) {
return GKE_MASTER;
case 5:
return CLOUD_SQL_INSTANCE;
+ case 6:
+ return PSC_PUBLISHED_SERVICE;
+ case 7:
+ return PSC_GOOGLE_API;
+ case 8:
+ return PSC_VPC_SC;
+ case 9:
+ return SERVERLESS_NEG;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java
index 31f23d1d3908..7f37f629d126 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java
@@ -205,6 +205,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* FORWARDING_RULE_MISMATCH = 11;
*/
FORWARDING_RULE_MISMATCH(11),
+ /**
+ *
+ *
+ * + * Packet could be dropped because it was sent from a different region + * to a regional forwarding without global access. + *+ * + *
FORWARDING_RULE_REGION_MISMATCH = 25;
+ */
+ FORWARDING_RULE_REGION_MISMATCH(25),
/**
*
*
@@ -239,6 +250,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* INSTANCE_NOT_RUNNING = 14;
*/
INSTANCE_NOT_RUNNING(14),
+ /**
+ *
+ *
+ * + * Packet sent from or to a GKE cluster that is not in running state. + *+ * + *
GKE_CLUSTER_NOT_RUNNING = 27;
+ */
+ GKE_CLUSTER_NOT_RUNNING(27),
+ /**
+ *
+ *
+ * + * Packet sent from or to a Cloud SQL instance that is not in running state. + *+ * + *
CLOUD_SQL_INSTANCE_NOT_RUNNING = 28;
+ */
+ CLOUD_SQL_INSTANCE_NOT_RUNNING(28),
/**
*
*
@@ -309,6 +340,28 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* GOOGLE_MANAGED_SERVICE_NO_PEERING = 20;
*/
GOOGLE_MANAGED_SERVICE_NO_PEERING(20),
+ /**
+ *
+ *
+ * + * Packet was dropped because the Google-managed service uses Private + * Service Connect (PSC), but the PSC endpoint is not found in the project. + *+ * + *
GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38;
+ */
+ GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT(38),
+ /**
+ *
+ *
+ * + * Packet was dropped because the GKE cluster uses Private Service Connect + * (PSC), but the PSC endpoint is not found in the project. + *+ * + *
GKE_PSC_ENDPOINT_MISSING = 36;
+ */
+ GKE_PSC_ENDPOINT_MISSING(36),
/**
*
*
@@ -320,6 +373,147 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* CLOUD_SQL_INSTANCE_NO_IP_ADDRESS = 21;
*/
CLOUD_SQL_INSTANCE_NO_IP_ADDRESS(21),
+ /**
+ *
+ *
+ * + * Packet was dropped because a GKE cluster private endpoint is + * unreachable from a region different from the cluster's region. + *+ * + *
GKE_CONTROL_PLANE_REGION_MISMATCH = 30;
+ */
+ GKE_CONTROL_PLANE_REGION_MISMATCH(30),
+ /**
+ *
+ *
+ * + * Packet sent from a public GKE cluster control plane to a private + * IP address. + *+ * + *
PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31;
+ */
+ PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION(31),
+ /**
+ *
+ *
+ * + * Packet was dropped because there is no route from a GKE cluster + * control plane to a destination network. + *+ * + *
GKE_CONTROL_PLANE_NO_ROUTE = 32;
+ */
+ GKE_CONTROL_PLANE_NO_ROUTE(32),
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud SQL instance to an external IP address is not + * allowed. The Cloud SQL instance is not configured to send packets to + * external IP addresses. + *+ * + *
CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33;
+ */
+ CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC(33),
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud SQL instance with only a public IP address to a + * private IP address. + *+ * + *
PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34;
+ */
+ PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION(34),
+ /**
+ *
+ *
+ * + * Packet was dropped because there is no route from a Cloud SQL + * instance to a destination network. + *+ * + *
CLOUD_SQL_INSTANCE_NO_ROUTE = 35;
+ */
+ CLOUD_SQL_INSTANCE_NO_ROUTE(35),
+ /**
+ *
+ *
+ * + * Packet could be dropped because the Cloud Function is not in an active + * status. + *+ * + *
CLOUD_FUNCTION_NOT_ACTIVE = 22;
+ */
+ CLOUD_FUNCTION_NOT_ACTIVE(22),
+ /**
+ *
+ *
+ * + * Packet could be dropped because no VPC connector is set. + *+ * + *
VPC_CONNECTOR_NOT_SET = 23;
+ */
+ VPC_CONNECTOR_NOT_SET(23),
+ /**
+ *
+ *
+ * + * Packet could be dropped because the VPC connector is not in a running + * state. + *+ * + *
VPC_CONNECTOR_NOT_RUNNING = 24;
+ */
+ VPC_CONNECTOR_NOT_RUNNING(24),
+ /**
+ *
+ *
+ * + * The Private Service Connect endpoint is in a project that is not approved + * to connect to the service. + *+ * + *
PSC_CONNECTION_NOT_ACCEPTED = 26;
+ */
+ PSC_CONNECTION_NOT_ACCEPTED(26),
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud Run revision that is not ready. + *+ * + *
CLOUD_RUN_REVISION_NOT_READY = 29;
+ */
+ CLOUD_RUN_REVISION_NOT_READY(29),
+ /**
+ *
+ *
+ * + * Packet was dropped inside Private Service Connect service producer. + *+ * + *
DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37;
+ */
+ DROPPED_INSIDE_PSC_SERVICE_PRODUCER(37),
+ /**
+ *
+ *
+ * + * Packet sent to a load balancer, which requires a proxy-only subnet and + * the subnet is not found. + *+ * + *
LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39;
+ */
+ LOAD_BALANCER_HAS_NO_PROXY_SUBNET(39),
UNRECOGNIZED(-1),
;
@@ -455,6 +649,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* FORWARDING_RULE_MISMATCH = 11;
*/
public static final int FORWARDING_RULE_MISMATCH_VALUE = 11;
+ /**
+ *
+ *
+ * + * Packet could be dropped because it was sent from a different region + * to a regional forwarding without global access. + *+ * + *
FORWARDING_RULE_REGION_MISMATCH = 25;
+ */
+ public static final int FORWARDING_RULE_REGION_MISMATCH_VALUE = 25;
/**
*
*
@@ -489,6 +694,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* INSTANCE_NOT_RUNNING = 14;
*/
public static final int INSTANCE_NOT_RUNNING_VALUE = 14;
+ /**
+ *
+ *
+ * + * Packet sent from or to a GKE cluster that is not in running state. + *+ * + *
GKE_CLUSTER_NOT_RUNNING = 27;
+ */
+ public static final int GKE_CLUSTER_NOT_RUNNING_VALUE = 27;
+ /**
+ *
+ *
+ * + * Packet sent from or to a Cloud SQL instance that is not in running state. + *+ * + *
CLOUD_SQL_INSTANCE_NOT_RUNNING = 28;
+ */
+ public static final int CLOUD_SQL_INSTANCE_NOT_RUNNING_VALUE = 28;
/**
*
*
@@ -559,6 +784,28 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* GOOGLE_MANAGED_SERVICE_NO_PEERING = 20;
*/
public static final int GOOGLE_MANAGED_SERVICE_NO_PEERING_VALUE = 20;
+ /**
+ *
+ *
+ * + * Packet was dropped because the Google-managed service uses Private + * Service Connect (PSC), but the PSC endpoint is not found in the project. + *+ * + *
GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38;
+ */
+ public static final int GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT_VALUE = 38;
+ /**
+ *
+ *
+ * + * Packet was dropped because the GKE cluster uses Private Service Connect + * (PSC), but the PSC endpoint is not found in the project. + *+ * + *
GKE_PSC_ENDPOINT_MISSING = 36;
+ */
+ public static final int GKE_PSC_ENDPOINT_MISSING_VALUE = 36;
/**
*
*
@@ -570,6 +817,147 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* CLOUD_SQL_INSTANCE_NO_IP_ADDRESS = 21;
*/
public static final int CLOUD_SQL_INSTANCE_NO_IP_ADDRESS_VALUE = 21;
+ /**
+ *
+ *
+ * + * Packet was dropped because a GKE cluster private endpoint is + * unreachable from a region different from the cluster's region. + *+ * + *
GKE_CONTROL_PLANE_REGION_MISMATCH = 30;
+ */
+ public static final int GKE_CONTROL_PLANE_REGION_MISMATCH_VALUE = 30;
+ /**
+ *
+ *
+ * + * Packet sent from a public GKE cluster control plane to a private + * IP address. + *+ * + *
PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31;
+ */
+ public static final int PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION_VALUE = 31;
+ /**
+ *
+ *
+ * + * Packet was dropped because there is no route from a GKE cluster + * control plane to a destination network. + *+ * + *
GKE_CONTROL_PLANE_NO_ROUTE = 32;
+ */
+ public static final int GKE_CONTROL_PLANE_NO_ROUTE_VALUE = 32;
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud SQL instance to an external IP address is not + * allowed. The Cloud SQL instance is not configured to send packets to + * external IP addresses. + *+ * + *
CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33;
+ */
+ public static final int CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC_VALUE = 33;
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud SQL instance with only a public IP address to a + * private IP address. + *+ * + *
PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34;
+ */
+ public static final int PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION_VALUE = 34;
+ /**
+ *
+ *
+ * + * Packet was dropped because there is no route from a Cloud SQL + * instance to a destination network. + *+ * + *
CLOUD_SQL_INSTANCE_NO_ROUTE = 35;
+ */
+ public static final int CLOUD_SQL_INSTANCE_NO_ROUTE_VALUE = 35;
+ /**
+ *
+ *
+ * + * Packet could be dropped because the Cloud Function is not in an active + * status. + *+ * + *
CLOUD_FUNCTION_NOT_ACTIVE = 22;
+ */
+ public static final int CLOUD_FUNCTION_NOT_ACTIVE_VALUE = 22;
+ /**
+ *
+ *
+ * + * Packet could be dropped because no VPC connector is set. + *+ * + *
VPC_CONNECTOR_NOT_SET = 23;
+ */
+ public static final int VPC_CONNECTOR_NOT_SET_VALUE = 23;
+ /**
+ *
+ *
+ * + * Packet could be dropped because the VPC connector is not in a running + * state. + *+ * + *
VPC_CONNECTOR_NOT_RUNNING = 24;
+ */
+ public static final int VPC_CONNECTOR_NOT_RUNNING_VALUE = 24;
+ /**
+ *
+ *
+ * + * The Private Service Connect endpoint is in a project that is not approved + * to connect to the service. + *+ * + *
PSC_CONNECTION_NOT_ACCEPTED = 26;
+ */
+ public static final int PSC_CONNECTION_NOT_ACCEPTED_VALUE = 26;
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud Run revision that is not ready. + *+ * + *
CLOUD_RUN_REVISION_NOT_READY = 29;
+ */
+ public static final int CLOUD_RUN_REVISION_NOT_READY_VALUE = 29;
+ /**
+ *
+ *
+ * + * Packet was dropped inside Private Service Connect service producer. + *+ * + *
DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37;
+ */
+ public static final int DROPPED_INSIDE_PSC_SERVICE_PRODUCER_VALUE = 37;
+ /**
+ *
+ *
+ * + * Packet sent to a load balancer, which requires a proxy-only subnet and + * the subnet is not found. + *+ * + *
LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39;
+ */
+ public static final int LOAD_BALANCER_HAS_NO_PROXY_SUBNET_VALUE = 39;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -619,12 +1007,18 @@ public static Cause forNumber(int value) {
return UNKNOWN_INTERNAL_ADDRESS;
case 11:
return FORWARDING_RULE_MISMATCH;
+ case 25:
+ return FORWARDING_RULE_REGION_MISMATCH;
case 12:
return FORWARDING_RULE_NO_INSTANCES;
case 13:
return FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK;
case 14:
return INSTANCE_NOT_RUNNING;
+ case 27:
+ return GKE_CLUSTER_NOT_RUNNING;
+ case 28:
+ return CLOUD_SQL_INSTANCE_NOT_RUNNING;
case 15:
return TRAFFIC_TYPE_BLOCKED;
case 16:
@@ -637,8 +1031,38 @@ public static Cause forNumber(int value) {
return DROPPED_INSIDE_CLOUD_SQL_SERVICE;
case 20:
return GOOGLE_MANAGED_SERVICE_NO_PEERING;
+ case 38:
+ return GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT;
+ case 36:
+ return GKE_PSC_ENDPOINT_MISSING;
case 21:
return CLOUD_SQL_INSTANCE_NO_IP_ADDRESS;
+ case 30:
+ return GKE_CONTROL_PLANE_REGION_MISMATCH;
+ case 31:
+ return PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION;
+ case 32:
+ return GKE_CONTROL_PLANE_NO_ROUTE;
+ case 33:
+ return CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC;
+ case 34:
+ return PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION;
+ case 35:
+ return CLOUD_SQL_INSTANCE_NO_ROUTE;
+ case 22:
+ return CLOUD_FUNCTION_NOT_ACTIVE;
+ case 23:
+ return VPC_CONNECTOR_NOT_SET;
+ case 24:
+ return VPC_CONNECTOR_NOT_RUNNING;
+ case 26:
+ return PSC_CONNECTION_NOT_ACCEPTED;
+ case 29:
+ return CLOUD_RUN_REVISION_NOT_READY;
+ case 37:
+ return DROPPED_INSIDE_PSC_SERVICE_PRODUCER;
+ case 39:
+ return LOAD_BALANCER_HAS_NO_PROXY_SUBNET;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java
index 815aa02e3cf6..dbbde06cf105 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java
@@ -41,6 +41,9 @@ private Endpoint() {
ipAddress_ = "";
instance_ = "";
forwardingRule_ = "";
+ forwardingRuleTarget_ = 0;
+ loadBalancerId_ = "";
+ loadBalancerType_ = 0;
gkeMasterCluster_ = "";
cloudSqlInstance_ = "";
network_ = "";
@@ -235,1008 +238,4689 @@ private NetworkType(int value) {
// @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.Endpoint.NetworkType)
}
- public static final int IP_ADDRESS_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object ipAddress_ = "";
/**
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + * Type of the target of a forwarding rule. ** - *
string ip_address = 1;
- *
- * @return The ipAddress.
+ * Protobuf enum {@code google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget}
*/
- @java.lang.Override
- public java.lang.String getIpAddress() {
- java.lang.Object ref = ipAddress_;
- 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();
- ipAddress_ = s;
- return s;
+ public enum ForwardingRuleTarget implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ * + * Forwarding rule target is unknown. + *+ * + *
FORWARDING_RULE_TARGET_UNSPECIFIED = 0;
+ */
+ FORWARDING_RULE_TARGET_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Compute Engine instance for protocol forwarding. + *+ * + *
INSTANCE = 1;
+ */
+ INSTANCE(1),
+ /**
+ *
+ *
+ * + * Load Balancer. The specific type can be found from [load_balancer_type] + * [google.cloud.networkmanagement.v1.Endpoint.load_balancer_type]. + *+ * + *
LOAD_BALANCER = 2;
+ */
+ LOAD_BALANCER(2),
+ /**
+ *
+ *
+ * + * Classic Cloud VPN Gateway. + *+ * + *
VPN_GATEWAY = 3;
+ */
+ VPN_GATEWAY(3),
+ /**
+ *
+ *
+ * + * Forwarding Rule is a Private Service Connect endpoint. + *+ * + *
PSC = 4;
+ */
+ PSC(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Forwarding rule target is unknown. + *+ * + *
FORWARDING_RULE_TARGET_UNSPECIFIED = 0;
+ */
+ public static final int FORWARDING_RULE_TARGET_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Compute Engine instance for protocol forwarding. + *+ * + *
INSTANCE = 1;
+ */
+ public static final int INSTANCE_VALUE = 1;
+ /**
+ *
+ *
+ * + * Load Balancer. The specific type can be found from [load_balancer_type] + * [google.cloud.networkmanagement.v1.Endpoint.load_balancer_type]. + *+ * + *
LOAD_BALANCER = 2;
+ */
+ public static final int LOAD_BALANCER_VALUE = 2;
+ /**
+ *
+ *
+ * + * Classic Cloud VPN Gateway. + *+ * + *
VPN_GATEWAY = 3;
+ */
+ public static final int VPN_GATEWAY_VALUE = 3;
+ /**
+ *
+ *
+ * + * Forwarding Rule is a Private Service Connect endpoint. + *+ * + *
PSC = 4;
+ */
+ public static final int PSC_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;
}
- }
- /**
- *
- *
- * - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). - *- * - *
string ip_address = 1;
- *
- * @return The bytes for ipAddress.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getIpAddressBytes() {
- java.lang.Object ref = ipAddress_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- ipAddress_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ /**
+ * @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 ForwardingRuleTarget valueOf(int value) {
+ return forNumber(value);
}
- }
- public static final int PORT_FIELD_NUMBER = 2;
- private int port_ = 0;
- /**
- *
- *
- * - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. - *- * - *
int32 port = 2;
- *
- * @return The port.
- */
- @java.lang.Override
- public int getPort() {
- return port_;
- }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ForwardingRuleTarget forNumber(int value) {
+ switch (value) {
+ case 0:
+ return FORWARDING_RULE_TARGET_UNSPECIFIED;
+ case 1:
+ return INSTANCE;
+ case 2:
+ return LOAD_BALANCER;
+ case 3:
+ return VPN_GATEWAY;
+ case 4:
+ return PSC;
+ default:
+ return null;
+ }
+ }
- public static final int INSTANCE_FIELD_NUMBER = 3;
+ public static com.google.protobuf.Internal.EnumLiteMap- * A Compute Engine instance URI. - *- * - *
string instance = 3;
- *
- * @return The instance.
- */
- @java.lang.Override
- public java.lang.String getInstance() {
- java.lang.Object ref = instance_;
- 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();
- instance_ = s;
- return s;
+ private static final com.google.protobuf.Internal.EnumLiteMap+ * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
}
/**
*
*
* - * A Compute Engine instance URI. + * Wrapper for Cloud Function attributes. ** - *
string instance = 3;
- *
- * @return The bytes for instance.
+ * Protobuf type {@code google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint}
*/
- @java.lang.Override
- public com.google.protobuf.ByteString getInstanceBytes() {
- java.lang.Object ref = instance_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- instance_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public static final class CloudFunctionEndpoint extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)
+ CloudFunctionEndpointOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CloudFunctionEndpoint.newBuilder() to construct.
+ private CloudFunctionEndpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- }
- public static final int FORWARDING_RULE_FIELD_NUMBER = 13;
+ private CloudFunctionEndpoint() {
+ uri_ = "";
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object forwardingRule_ = "";
- /**
- *
- *
- * - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} - *- * - *
string forwarding_rule = 13;
- *
- * @return The forwardingRule.
- */
- @java.lang.Override
- public java.lang.String getForwardingRule() {
- java.lang.Object ref = forwardingRule_;
- 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();
- forwardingRule_ = s;
- return s;
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new CloudFunctionEndpoint();
}
- }
- /**
- *
- *
- * - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} - *- * - *
string forwarding_rule = 13;
- *
- * @return The bytes for forwardingRule.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getForwardingRuleBytes() {
- java.lang.Object ref = forwardingRule_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- forwardingRule_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.networkmanagement.v1.TestOuterClass
+ .internal_static_google_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_descriptor;
}
- }
- public static final int GKE_MASTER_CLUSTER_FIELD_NUMBER = 7;
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.networkmanagement.v1.TestOuterClass
+ .internal_static_google_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.class,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder.class);
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object gkeMasterCluster_ = "";
- /**
- *
- *
- * - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - *- * - *
string gke_master_cluster = 7;
- *
- * @return The gkeMasterCluster.
- */
- @java.lang.Override
- public java.lang.String getGkeMasterCluster() {
- java.lang.Object ref = gkeMasterCluster_;
- 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();
- gkeMasterCluster_ = s;
- return s;
+ public static final int URI_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
}
- }
- /**
- *
- *
- * - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - *- * - *
string gke_master_cluster = 7;
- *
- * @return The bytes for gkeMasterCluster.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getGkeMasterClusterBytes() {
- java.lang.Object ref = gkeMasterCluster_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- gkeMasterCluster_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
- }
- public static final int CLOUD_SQL_INSTANCE_FIELD_NUMBER = 8;
+ private byte memoizedIsInitialized = -1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object cloudSqlInstance_ = "";
- /**
- *
- *
- * - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. - *- * - *
string cloud_sql_instance = 8;
- *
- * @return The cloudSqlInstance.
- */
- @java.lang.Override
- public java.lang.String getCloudSqlInstance() {
- java.lang.Object ref = cloudSqlInstance_;
- 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();
- cloudSqlInstance_ = s;
- return s;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
}
- }
- /**
- *
- *
- * - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. - *- * - *
string cloud_sql_instance = 8;
- *
- * @return The bytes for cloudSqlInstance.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getCloudSqlInstanceBytes() {
- java.lang.Object ref = cloudSqlInstance_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- cloudSqlInstance_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ getUnknownFields().writeTo(output);
}
- }
- public static final int NETWORK_FIELD_NUMBER = 4;
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
- @SuppressWarnings("serial")
- private volatile java.lang.Object network_ = "";
- /**
- *
- *
- * - * A Compute Engine network URI. - *- * - *
string network = 4;
- *
- * @return The network.
- */
- @java.lang.Override
- public java.lang.String getNetwork() {
- java.lang.Object ref = network_;
- 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();
- network_ = s;
- return s;
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
}
- }
- /**
- *
- *
- * - * A Compute Engine network URI. - *- * - *
string network = 4;
- *
- * @return The bytes for network.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getNetworkBytes() {
- java.lang.Object ref = network_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- network_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint other =
+ (com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint) obj;
+
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
- }
- public static final int NETWORK_TYPE_FIELD_NUMBER = 5;
- private int networkType_ = 0;
- /**
- *
- *
- * - * Type of the network where the endpoint is located. - * Applicable only to source endpoint, as destination network type can be - * inferred from the source. - *- * - *
.google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
- *
- * @return The enum numeric value on the wire for networkType.
- */
- @java.lang.Override
- public int getNetworkTypeValue() {
- return networkType_;
- }
- /**
- *
- *
- * - * Type of the network where the endpoint is located. - * Applicable only to source endpoint, as destination network type can be - * inferred from the source. - *- * - *
.google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
- *
- * @return The networkType.
- */
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1.Endpoint.NetworkType getNetworkType() {
- com.google.cloud.networkmanagement.v1.Endpoint.NetworkType result =
- com.google.cloud.networkmanagement.v1.Endpoint.NetworkType.forNumber(networkType_);
- return result == null
- ? com.google.cloud.networkmanagement.v1.Endpoint.NetworkType.UNRECOGNIZED
- : result;
- }
-
- public static final int PROJECT_ID_FIELD_NUMBER = 6;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object projectId_ = "";
- /**
- *
- *
- * - * Project ID where the endpoint is located. - * The Project ID can be derived from the URI if you provide a VM instance or - * network URI. - * The following are two cases where you must provide the project ID: - * 1. Only the IP address is specified, and the IP address is within a Google - * Cloud project. - * 2. When you are using Shared VPC and the IP address that you provide is - * from the service project. In this case, the network that the IP address - * resides in is defined in the host project. - *- * - *
string project_id = 6;
- *
- * @return The projectId.
- */
- @java.lang.Override
- public java.lang.String getProjectId() {
- java.lang.Object ref = projectId_;
- 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();
- projectId_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Project ID where the endpoint is located. - * The Project ID can be derived from the URI if you provide a VM instance or - * network URI. - * The following are two cases where you must provide the project ID: - * 1. Only the IP address is specified, and the IP address is within a Google - * Cloud project. - * 2. When you are using Shared VPC and the IP address that you provide is - * from the service project. In this case, the network that the IP address - * resides in is defined in the host project. - *- * - *
string project_id = 6;
- *
- * @return The bytes for projectId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getProjectIdBytes() {
- java.lang.Object ref = projectId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- projectId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
- }
-
- 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.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_);
- }
- if (port_ != 0) {
- output.writeInt32(2, port_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, network_);
- }
- if (networkType_
- != com.google.cloud.networkmanagement.v1.Endpoint.NetworkType.NETWORK_TYPE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(5, networkType_);
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, projectId_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeMasterCluster_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gkeMasterCluster_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlInstance_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cloudSqlInstance_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 13, forwardingRule_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- getUnknownFields().writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipAddress_);
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- if (port_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, network_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (networkType_
- != com.google.cloud.networkmanagement.v1.Endpoint.NetworkType.NETWORK_TYPE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, networkType_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, projectId_);
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeMasterCluster_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gkeMasterCluster_);
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlInstance_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cloudSqlInstance_);
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, forwardingRule_);
+
+ public static Builder newBuilder(
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
- if (!(obj instanceof com.google.cloud.networkmanagement.v1.Endpoint)) {
- return super.equals(obj);
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
}
- com.google.cloud.networkmanagement.v1.Endpoint other =
- (com.google.cloud.networkmanagement.v1.Endpoint) obj;
+ /**
+ *
+ *
+ * + * Wrapper for Cloud Function attributes. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions) name. + *+ * + *
string uri = 1;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)
+ private static final com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
}
/**
*
*
* - * Source or destination of the Connectivity Test. + * Wrapper for the App Engine service version attributes. ** - * Protobuf type {@code google.cloud.networkmanagement.v1.Endpoint} + * Protobuf type {@code google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = 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.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ 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.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint other =
+ (com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint) obj;
+
+ if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint 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.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint 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.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Wrapper for the App Engine service version attributes. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)
+ private static final com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+ }
+ /**
+ *
+ *
+ * + * Wrapper for Cloud Run revision attributes. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint} + */ + public static final class CloudRunRevisionEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint) + CloudRunRevisionEndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudRunRevisionEndpoint.newBuilder() to construct. + private CloudRunRevisionEndpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudRunRevisionEndpoint() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudRunRevisionEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.class, + com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder + .class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+ * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = 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.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ 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.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint other =
+ (com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint) obj;
+
+ if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint 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.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint 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.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Wrapper for Cloud Run revision attributes. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)
+ private static final com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return The ipAddress.
+ */
+ @java.lang.Override
+ public java.lang.String getIpAddress() {
+ java.lang.Object ref = ipAddress_;
+ 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();
+ ipAddress_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return The bytes for ipAddress.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIpAddressBytes() {
+ java.lang.Object ref = ipAddress_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ ipAddress_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PORT_FIELD_NUMBER = 2;
+ private int port_ = 0;
+ /**
+ *
+ *
+ * + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + *+ * + *
int32 port = 2;
+ *
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instance_ = "";
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return The instance.
+ */
+ @java.lang.Override
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ 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();
+ instance_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return The bytes for instance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FORWARDING_RULE_FIELD_NUMBER = 13;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object forwardingRule_ = "";
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return The forwardingRule.
+ */
+ @java.lang.Override
+ public java.lang.String getForwardingRule() {
+ java.lang.Object ref = forwardingRule_;
+ 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();
+ forwardingRule_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return The bytes for forwardingRule.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getForwardingRuleBytes() {
+ java.lang.Object ref = forwardingRule_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ forwardingRule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FORWARDING_RULE_TARGET_FIELD_NUMBER = 14;
+ private int forwardingRuleTarget_ = 0;
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardingRuleTarget field is set.
+ */
+ @java.lang.Override
+ public boolean hasForwardingRuleTarget() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for forwardingRuleTarget.
+ */
+ @java.lang.Override
+ public int getForwardingRuleTargetValue() {
+ return forwardingRuleTarget_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardingRuleTarget.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget
+ getForwardingRuleTarget() {
+ com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget result =
+ com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget.forNumber(
+ forwardingRuleTarget_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int LOAD_BALANCER_ID_FIELD_NUMBER = 15;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object loadBalancerId_ = "";
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerId field is set.
+ */
+ @java.lang.Override
+ public boolean hasLoadBalancerId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerId.
+ */
+ @java.lang.Override
+ public java.lang.String getLoadBalancerId() {
+ java.lang.Object ref = loadBalancerId_;
+ 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();
+ loadBalancerId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for loadBalancerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLoadBalancerIdBytes() {
+ java.lang.Object ref = loadBalancerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ loadBalancerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 16;
+ private int loadBalancerType_ = 0;
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerType field is set.
+ */
+ @java.lang.Override
+ public boolean hasLoadBalancerType() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for loadBalancerType.
+ */
+ @java.lang.Override
+ public int getLoadBalancerTypeValue() {
+ return loadBalancerType_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.LoadBalancerType getLoadBalancerType() {
+ com.google.cloud.networkmanagement.v1.LoadBalancerType result =
+ com.google.cloud.networkmanagement.v1.LoadBalancerType.forNumber(loadBalancerType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.LoadBalancerType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int GKE_MASTER_CLUSTER_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gkeMasterCluster_ = "";
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return The gkeMasterCluster.
+ */
+ @java.lang.Override
+ public java.lang.String getGkeMasterCluster() {
+ java.lang.Object ref = gkeMasterCluster_;
+ 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();
+ gkeMasterCluster_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return The bytes for gkeMasterCluster.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGkeMasterClusterBytes() {
+ java.lang.Object ref = gkeMasterCluster_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gkeMasterCluster_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLOUD_SQL_INSTANCE_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object cloudSqlInstance_ = "";
+ /**
+ *
+ *
+ * + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + *+ * + *
string cloud_sql_instance = 8;
+ *
+ * @return The cloudSqlInstance.
+ */
+ @java.lang.Override
+ public java.lang.String getCloudSqlInstance() {
+ java.lang.Object ref = cloudSqlInstance_;
+ 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();
+ cloudSqlInstance_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + *+ * + *
string cloud_sql_instance = 8;
+ *
+ * @return The bytes for cloudSqlInstance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCloudSqlInstanceBytes() {
+ java.lang.Object ref = cloudSqlInstance_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ cloudSqlInstance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLOUD_FUNCTION_FIELD_NUMBER = 10;
+ private com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloudFunction_;
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return Whether the cloudFunction field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudFunction() {
+ return cloudFunction_ != null;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return The cloudFunction.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint getCloudFunction() {
+ return cloudFunction_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.getDefaultInstance()
+ : cloudFunction_;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder
+ getCloudFunctionOrBuilder() {
+ return cloudFunction_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.getDefaultInstance()
+ : cloudFunction_;
+ }
+
+ public static final int APP_ENGINE_VERSION_FIELD_NUMBER = 11;
+ private com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint appEngineVersion_;
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasAppEngineVersion() {
+ return appEngineVersion_ != null;
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ getAppEngineVersion() {
+ return appEngineVersion_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder
+ getAppEngineVersionOrBuilder() {
+ return appEngineVersion_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ }
+
+ public static final int CLOUD_RUN_REVISION_FIELD_NUMBER = 12;
+ private com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloudRunRevision_;
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudRunRevision() {
+ return cloudRunRevision_ != null;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ getCloudRunRevision() {
+ return cloudRunRevision_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()
+ : cloudRunRevision_;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ return cloudRunRevision_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()
+ : cloudRunRevision_;
+ }
+
+ public static final int NETWORK_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object network_ = "";
+ /**
+ *
+ *
+ * + * A Compute Engine network URI. + *+ * + *
string network = 4;
+ *
+ * @return The network.
+ */
+ @java.lang.Override
+ public java.lang.String getNetwork() {
+ java.lang.Object ref = network_;
+ 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();
+ network_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine network URI. + *+ * + *
string network = 4;
+ *
+ * @return The bytes for network.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNetworkBytes() {
+ java.lang.Object ref = network_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ network_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NETWORK_TYPE_FIELD_NUMBER = 5;
+ private int networkType_ = 0;
+ /**
+ *
+ *
+ * + * Type of the network where the endpoint is located. + * Applicable only to source endpoint, as destination network type can be + * inferred from the source. + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return The enum numeric value on the wire for networkType.
+ */
+ @java.lang.Override
+ public int getNetworkTypeValue() {
+ return networkType_;
+ }
+ /**
+ *
+ *
+ * + * Type of the network where the endpoint is located. + * Applicable only to source endpoint, as destination network type can be + * inferred from the source. + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return The networkType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.Endpoint.NetworkType getNetworkType() {
+ com.google.cloud.networkmanagement.v1.Endpoint.NetworkType result =
+ com.google.cloud.networkmanagement.v1.Endpoint.NetworkType.forNumber(networkType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.NetworkType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int PROJECT_ID_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Project ID where the endpoint is located. + * The Project ID can be derived from the URI if you provide a VM instance or + * network URI. + * The following are two cases where you must provide the project ID: + * 1. Only the IP address is specified, and the IP address is within a Google + * Cloud project. + * 2. When you are using Shared VPC and the IP address that you provide is + * from the service project. In this case, the network that the IP address + * resides in is defined in the host project. + *+ * + *
string project_id = 6;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Project ID where the endpoint is located. + * The Project ID can be derived from the URI if you provide a VM instance or + * network URI. + * The following are two cases where you must provide the project ID: + * 1. Only the IP address is specified, and the IP address is within a Google + * Cloud project. + * 2. When you are using Shared VPC and the IP address that you provide is + * from the service project. In this case, the network that the IP address + * resides in is defined in the host project. + *+ * + *
string project_id = 6;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = 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.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(2, port_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, network_);
+ }
+ if (networkType_
+ != com.google.cloud.networkmanagement.v1.Endpoint.NetworkType.NETWORK_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(5, networkType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeMasterCluster_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gkeMasterCluster_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlInstance_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cloudSqlInstance_);
+ }
+ if (cloudFunction_ != null) {
+ output.writeMessage(10, getCloudFunction());
+ }
+ if (appEngineVersion_ != null) {
+ output.writeMessage(11, getAppEngineVersion());
+ }
+ if (cloudRunRevision_ != null) {
+ output.writeMessage(12, getCloudRunRevision());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, forwardingRule_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(14, forwardingRuleTarget_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, loadBalancerId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(16, loadBalancerType_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipAddress_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, network_);
+ }
+ if (networkType_
+ != com.google.cloud.networkmanagement.v1.Endpoint.NetworkType.NETWORK_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, networkType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeMasterCluster_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gkeMasterCluster_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlInstance_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cloudSqlInstance_);
+ }
+ if (cloudFunction_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCloudFunction());
+ }
+ if (appEngineVersion_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAppEngineVersion());
+ }
+ if (cloudRunRevision_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCloudRunRevision());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, forwardingRule_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, forwardingRuleTarget_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, loadBalancerId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, loadBalancerType_);
+ }
+ 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.networkmanagement.v1.Endpoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.Endpoint other =
+ (com.google.cloud.networkmanagement.v1.Endpoint) obj;
+
+ if (!getIpAddress().equals(other.getIpAddress())) return false;
+ if (getPort() != other.getPort()) return false;
+ if (!getInstance().equals(other.getInstance())) return false;
+ if (!getForwardingRule().equals(other.getForwardingRule())) return false;
+ if (hasForwardingRuleTarget() != other.hasForwardingRuleTarget()) return false;
+ if (hasForwardingRuleTarget()) {
+ if (forwardingRuleTarget_ != other.forwardingRuleTarget_) return false;
+ }
+ if (hasLoadBalancerId() != other.hasLoadBalancerId()) return false;
+ if (hasLoadBalancerId()) {
+ if (!getLoadBalancerId().equals(other.getLoadBalancerId())) return false;
+ }
+ if (hasLoadBalancerType() != other.hasLoadBalancerType()) return false;
+ if (hasLoadBalancerType()) {
+ if (loadBalancerType_ != other.loadBalancerType_) return false;
+ }
+ if (!getGkeMasterCluster().equals(other.getGkeMasterCluster())) return false;
+ if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false;
+ if (hasCloudFunction() != other.hasCloudFunction()) return false;
+ if (hasCloudFunction()) {
+ if (!getCloudFunction().equals(other.getCloudFunction())) return false;
+ }
+ if (hasAppEngineVersion() != other.hasAppEngineVersion()) return false;
+ if (hasAppEngineVersion()) {
+ if (!getAppEngineVersion().equals(other.getAppEngineVersion())) return false;
+ }
+ if (hasCloudRunRevision() != other.hasCloudRunRevision()) return false;
+ if (hasCloudRunRevision()) {
+ if (!getCloudRunRevision().equals(other.getCloudRunRevision())) return false;
+ }
+ if (!getNetwork().equals(other.getNetwork())) return false;
+ if (networkType_ != other.networkType_) return false;
+ if (!getProjectId().equals(other.getProjectId())) 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) + IP_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getIpAddress().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER;
+ hash = (53 * hash) + getForwardingRule().hashCode();
+ if (hasForwardingRuleTarget()) {
+ hash = (37 * hash) + FORWARDING_RULE_TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + forwardingRuleTarget_;
+ }
+ if (hasLoadBalancerId()) {
+ hash = (37 * hash) + LOAD_BALANCER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getLoadBalancerId().hashCode();
+ }
+ if (hasLoadBalancerType()) {
+ hash = (37 * hash) + LOAD_BALANCER_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + loadBalancerType_;
+ }
+ hash = (37 * hash) + GKE_MASTER_CLUSTER_FIELD_NUMBER;
+ hash = (53 * hash) + getGkeMasterCluster().hashCode();
+ hash = (37 * hash) + CLOUD_SQL_INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudSqlInstance().hashCode();
+ if (hasCloudFunction()) {
+ hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudFunction().hashCode();
+ }
+ if (hasAppEngineVersion()) {
+ hash = (37 * hash) + APP_ENGINE_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getAppEngineVersion().hashCode();
+ }
+ if (hasCloudRunRevision()) {
+ hash = (37 * hash) + CLOUD_RUN_REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudRunRevision().hashCode();
+ }
+ hash = (37 * hash) + NETWORK_FIELD_NUMBER;
+ hash = (53 * hash) + getNetwork().hashCode();
+ hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + networkType_;
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint 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.networkmanagement.v1.Endpoint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint 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.networkmanagement.v1.Endpoint parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.Endpoint parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.Endpoint 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Source or destination of the Connectivity Test. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.Endpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return The ipAddress.
+ */
+ public java.lang.String getIpAddress() {
+ java.lang.Object ref = ipAddress_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ipAddress_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return The bytes for ipAddress.
+ */
+ public com.google.protobuf.ByteString getIpAddressBytes() {
+ java.lang.Object ref = ipAddress_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ ipAddress_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @param value The ipAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIpAddress(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ipAddress_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIpAddress() {
+ ipAddress_ = getDefaultInstance().getIpAddress();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @param value The bytes for ipAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ipAddress_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int port_;
+ /**
+ *
+ *
+ * + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + *+ * + *
int32 port = 2;
+ *
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+ /**
+ *
+ *
+ * + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + *+ * + *
int32 port = 2;
+ *
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + *+ * + *
int32 port = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instance_ = "";
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return The instance.
+ */
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instance_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return The bytes for instance.
+ */
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @param value The instance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstance(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instance_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstance() {
+ instance_ = getDefaultInstance().getInstance();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @param value The bytes for instance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instance_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object forwardingRule_ = "";
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return The forwardingRule.
+ */
+ public java.lang.String getForwardingRule() {
+ java.lang.Object ref = forwardingRule_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ forwardingRule_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return The bytes for forwardingRule.
+ */
+ public com.google.protobuf.ByteString getForwardingRuleBytes() {
+ java.lang.Object ref = forwardingRule_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ forwardingRule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @param value The forwardingRule to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForwardingRule(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ forwardingRule_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
}
-
- // Construct using com.google.cloud.networkmanagement.v1.Endpoint.newBuilder()
- private Builder() {}
-
- private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearForwardingRule() {
+ forwardingRule_ = getDefaultInstance().getForwardingRule();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
}
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- ipAddress_ = "";
- port_ = 0;
- instance_ = "";
- forwardingRule_ = "";
- gkeMasterCluster_ = "";
- cloudSqlInstance_ = "";
- network_ = "";
- networkType_ = 0;
- projectId_ = "";
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @param value The bytes for forwardingRule to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ forwardingRule_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
+ private int forwardingRuleTarget_ = 0;
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardingRuleTarget field is set.
+ */
@java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.networkmanagement.v1.TestOuterClass
- .internal_static_google_cloud_networkmanagement_v1_Endpoint_descriptor;
+ public boolean hasForwardingRuleTarget() {
+ return ((bitField0_ & 0x00000010) != 0);
}
-
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for forwardingRuleTarget.
+ */
@java.lang.Override
- public com.google.cloud.networkmanagement.v1.Endpoint getDefaultInstanceForType() {
- return com.google.cloud.networkmanagement.v1.Endpoint.getDefaultInstance();
+ public int getForwardingRuleTargetValue() {
+ return forwardingRuleTarget_;
}
-
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1.Endpoint build() {
- com.google.cloud.networkmanagement.v1.Endpoint result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for forwardingRuleTarget to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForwardingRuleTargetValue(int value) {
+ forwardingRuleTarget_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
}
-
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardingRuleTarget.
+ */
@java.lang.Override
- public com.google.cloud.networkmanagement.v1.Endpoint buildPartial() {
- com.google.cloud.networkmanagement.v1.Endpoint result =
- new com.google.cloud.networkmanagement.v1.Endpoint(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ public com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget
+ getForwardingRuleTarget() {
+ com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget result =
+ com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget.forNumber(
+ forwardingRuleTarget_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The forwardingRuleTarget to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForwardingRuleTarget(
+ com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- onBuilt();
- return result;
+ bitField0_ |= 0x00000010;
+ forwardingRuleTarget_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearForwardingRuleTarget() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ forwardingRuleTarget_ = 0;
+ onChanged();
+ return this;
}
- private void buildPartial0(com.google.cloud.networkmanagement.v1.Endpoint result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.ipAddress_ = ipAddress_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.port_ = port_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.instance_ = instance_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.forwardingRule_ = forwardingRule_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.gkeMasterCluster_ = gkeMasterCluster_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.cloudSqlInstance_ = cloudSqlInstance_;
+ private java.lang.Object loadBalancerId_ = "";
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerId field is set.
+ */
+ public boolean hasLoadBalancerId() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerId.
+ */
+ public java.lang.String getLoadBalancerId() {
+ java.lang.Object ref = loadBalancerId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ loadBalancerId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.network_ = network_;
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for loadBalancerId.
+ */
+ public com.google.protobuf.ByteString getLoadBalancerIdBytes() {
+ java.lang.Object ref = loadBalancerId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ loadBalancerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.networkType_ = networkType_;
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The loadBalancerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoadBalancerId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.projectId_ = projectId_;
+ loadBalancerId_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLoadBalancerId() {
+ loadBalancerId_ = getDefaultInstance().getLoadBalancerId();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for loadBalancerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoadBalancerIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ checkByteStringIsUtf8(value);
+ loadBalancerId_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
}
+ private int loadBalancerType_ = 0;
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerType field is set.
+ */
@java.lang.Override
- public Builder clone() {
- return super.clone();
+ public boolean hasLoadBalancerType() {
+ return ((bitField0_ & 0x00000040) != 0);
}
-
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for loadBalancerType.
+ */
@java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
+ public int getLoadBalancerTypeValue() {
+ return loadBalancerType_;
}
-
- @java.lang.Override
- public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for loadBalancerType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoadBalancerTypeValue(int value) {
+ loadBalancerType_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
}
-
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerType.
+ */
@java.lang.Override
- public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
+ public com.google.cloud.networkmanagement.v1.LoadBalancerType getLoadBalancerType() {
+ com.google.cloud.networkmanagement.v1.LoadBalancerType result =
+ com.google.cloud.networkmanagement.v1.LoadBalancerType.forNumber(loadBalancerType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.LoadBalancerType.UNRECOGNIZED
+ : result;
}
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The loadBalancerType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoadBalancerType(
+ com.google.cloud.networkmanagement.v1.LoadBalancerType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ loadBalancerType_ = value.getNumber();
+ onChanged();
+ return this;
}
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLoadBalancerType() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ loadBalancerType_ = 0;
+ onChanged();
+ return this;
}
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.networkmanagement.v1.Endpoint) {
- return mergeFrom((com.google.cloud.networkmanagement.v1.Endpoint) other);
+ private java.lang.Object gkeMasterCluster_ = "";
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return The gkeMasterCluster.
+ */
+ public java.lang.String getGkeMasterCluster() {
+ java.lang.Object ref = gkeMasterCluster_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gkeMasterCluster_ = s;
+ return s;
} else {
- super.mergeFrom(other);
- return this;
+ return (java.lang.String) ref;
}
}
-
- public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) {
- if (other == com.google.cloud.networkmanagement.v1.Endpoint.getDefaultInstance()) return this;
- if (!other.getIpAddress().isEmpty()) {
- ipAddress_ = other.ipAddress_;
- bitField0_ |= 0x00000001;
- onChanged();
- }
- if (other.getPort() != 0) {
- setPort(other.getPort());
- }
- if (!other.getInstance().isEmpty()) {
- instance_ = other.instance_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (!other.getForwardingRule().isEmpty()) {
- forwardingRule_ = other.forwardingRule_;
- bitField0_ |= 0x00000008;
- onChanged();
- }
- if (!other.getGkeMasterCluster().isEmpty()) {
- gkeMasterCluster_ = other.gkeMasterCluster_;
- bitField0_ |= 0x00000010;
- onChanged();
- }
- if (!other.getCloudSqlInstance().isEmpty()) {
- cloudSqlInstance_ = other.cloudSqlInstance_;
- bitField0_ |= 0x00000020;
- onChanged();
- }
- if (!other.getNetwork().isEmpty()) {
- network_ = other.network_;
- bitField0_ |= 0x00000040;
- onChanged();
- }
- if (other.networkType_ != 0) {
- setNetworkTypeValue(other.getNetworkTypeValue());
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return The bytes for gkeMasterCluster.
+ */
+ public com.google.protobuf.ByteString getGkeMasterClusterBytes() {
+ java.lang.Object ref = gkeMasterCluster_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gkeMasterCluster_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- if (!other.getProjectId().isEmpty()) {
- projectId_ = other.projectId_;
- bitField0_ |= 0x00000100;
- onChanged();
+ }
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @param value The gkeMasterCluster to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGkeMasterCluster(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ gkeMasterCluster_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGkeMasterCluster() {
+ gkeMasterCluster_ = getDefaultInstance().getGkeMasterCluster();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
}
-
- @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();
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @param value The bytes for gkeMasterCluster to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGkeMasterClusterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- ipAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16:
- {
- port_ = input.readInt32();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 26:
- {
- instance_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34:
- {
- network_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
- break;
- } // case 34
- case 40:
- {
- networkType_ = input.readEnum();
- bitField0_ |= 0x00000080;
- break;
- } // case 40
- case 50:
- {
- projectId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000100;
- break;
- } // case 50
- case 58:
- {
- gkeMasterCluster_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
- break;
- } // case 58
- case 66:
- {
- cloudSqlInstance_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 66
- case 106:
- {
- forwardingRule_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 106
- 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
+ checkByteStringIsUtf8(value);
+ gkeMasterCluster_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
return this;
}
- private int bitField0_;
-
- private java.lang.Object ipAddress_ = "";
+ private java.lang.Object cloudSqlInstance_ = "";
/**
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string ip_address = 1;
+ * string cloud_sql_instance = 8;
*
- * @return The ipAddress.
+ * @return The cloudSqlInstance.
*/
- public java.lang.String getIpAddress() {
- java.lang.Object ref = ipAddress_;
+ public java.lang.String getCloudSqlInstance() {
+ java.lang.Object ref = cloudSqlInstance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- ipAddress_ = s;
+ cloudSqlInstance_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1246,21 +4930,19 @@ public java.lang.String getIpAddress() {
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string ip_address = 1;
+ * string cloud_sql_instance = 8;
*
- * @return The bytes for ipAddress.
+ * @return The bytes for cloudSqlInstance.
*/
- public com.google.protobuf.ByteString getIpAddressBytes() {
- java.lang.Object ref = ipAddress_;
+ public com.google.protobuf.ByteString getCloudSqlInstanceBytes() {
+ java.lang.Object ref = cloudSqlInstance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- ipAddress_ = b;
+ cloudSqlInstance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -1270,22 +4952,20 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string ip_address = 1;
+ * string cloud_sql_instance = 8;
*
- * @param value The ipAddress to set.
+ * @param value The cloudSqlInstance to set.
* @return This builder for chaining.
*/
- public Builder setIpAddress(java.lang.String value) {
+ public Builder setCloudSqlInstance(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ipAddress_ = value;
- bitField0_ |= 0x00000001;
+ cloudSqlInstance_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -1293,18 +4973,16 @@ public Builder setIpAddress(java.lang.String value) {
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string ip_address = 1;
+ * string cloud_sql_instance = 8;
*
* @return This builder for chaining.
*/
- public Builder clearIpAddress() {
- ipAddress_ = getDefaultInstance().getIpAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
+ public Builder clearCloudSqlInstance() {
+ cloudSqlInstance_ = getDefaultInstance().getCloudSqlInstance();
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -1312,61 +4990,89 @@ public Builder clearIpAddress() {
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string ip_address = 1;
+ * string cloud_sql_instance = 8;
*
- * @param value The bytes for ipAddress to set.
+ * @param value The bytes for cloudSqlInstance to set.
* @return This builder for chaining.
*/
- public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
+ public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- ipAddress_ = value;
- bitField0_ |= 0x00000001;
+ cloudSqlInstance_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
- private int port_;
+ private com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloudFunction_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder>
+ cloudFunctionBuilder_;
/**
*
*
* - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. + * A [Cloud Function](https://cloud.google.com/functions). ** - *
int32 port = 2;
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*
- * @return The port.
+ * @return Whether the cloudFunction field is set.
*/
- @java.lang.Override
- public int getPort() {
- return port_;
+ public boolean hasCloudFunction() {
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*
* - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. + * A [Cloud Function](https://cloud.google.com/functions). ** - *
int32 port = 2;
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*
- * @param value The port to set.
- * @return This builder for chaining.
+ * @return The cloudFunction.
*/
- public Builder setPort(int value) {
-
- port_ = value;
- bitField0_ |= 0x00000002;
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint getCloudFunction() {
+ if (cloudFunctionBuilder_ == null) {
+ return cloudFunction_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
+ } else {
+ return cloudFunctionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public Builder setCloudFunction(
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint value) {
+ if (cloudFunctionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cloudFunction_ = value;
+ } else {
+ cloudFunctionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -1374,205 +5080,286 @@ public Builder setPort(int value) {
*
*
* - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. + * A [Cloud Function](https://cloud.google.com/functions). ** - *
int32 port = 2;
- *
- * @return This builder for chaining.
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public Builder clearPort() {
- bitField0_ = (bitField0_ & ~0x00000002);
- port_ = 0;
+ public Builder setCloudFunction(
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder
+ builderForValue) {
+ if (cloudFunctionBuilder_ == null) {
+ cloudFunction_ = builderForValue.build();
+ } else {
+ cloudFunctionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
-
- private java.lang.Object instance_ = "";
/**
*
*
* - * A Compute Engine instance URI. + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string instance = 3;
- *
- * @return The instance.
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public java.lang.String getInstance() {
- java.lang.Object ref = instance_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- instance_ = s;
- return s;
+ public Builder mergeCloudFunction(
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint value) {
+ if (cloudFunctionBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)
+ && cloudFunction_ != null
+ && cloudFunction_
+ != com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()) {
+ getCloudFunctionBuilder().mergeFrom(value);
+ } else {
+ cloudFunction_ = value;
+ }
} else {
- return (java.lang.String) ref;
+ cloudFunctionBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
}
/**
*
*
* - * A Compute Engine instance URI. + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string instance = 3;
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public Builder clearCloudFunction() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ cloudFunction_ = null;
+ if (cloudFunctionBuilder_ != null) {
+ cloudFunctionBuilder_.dispose();
+ cloudFunctionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
*
- * @return The bytes for instance.
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public com.google.protobuf.ByteString getInstanceBytes() {
- java.lang.Object ref = instance_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- instance_ = b;
- return b;
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder
+ getCloudFunctionBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getCloudFunctionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder
+ getCloudFunctionOrBuilder() {
+ if (cloudFunctionBuilder_ != null) {
+ return cloudFunctionBuilder_.getMessageOrBuilder();
} else {
- return (com.google.protobuf.ByteString) ref;
+ return cloudFunction_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
}
}
/**
*
*
* - * A Compute Engine instance URI. + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string instance = 3;
- *
- * @param value The instance to set.
- * @return This builder for chaining.
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public Builder setInstance(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder>
+ getCloudFunctionFieldBuilder() {
+ if (cloudFunctionBuilder_ == null) {
+ cloudFunctionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder>(
+ getCloudFunction(), getParentForChildren(), isClean());
+ cloudFunction_ = null;
}
- instance_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
+ return cloudFunctionBuilder_;
+ }
+
+ private com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ appEngineVersion_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder>
+ appEngineVersionBuilder_;
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ public boolean hasAppEngineVersion() {
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*
* - * A Compute Engine instance URI. + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string instance = 3;
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*
- * @return This builder for chaining.
+ * @return The appEngineVersion.
*/
- public Builder clearInstance() {
- instance_ = getDefaultInstance().getInstance();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
+ public com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ getAppEngineVersion() {
+ if (appEngineVersionBuilder_ == null) {
+ return appEngineVersion_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ } else {
+ return appEngineVersionBuilder_.getMessage();
+ }
}
/**
*
*
* - * A Compute Engine instance URI. + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string instance = 3;
- *
- * @param value The bytes for instance to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setAppEngineVersion(
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ appEngineVersion_ = value;
+ } else {
+ appEngineVersionBuilder_.setMessage(value);
}
- checkByteStringIsUtf8(value);
- instance_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
-
- private java.lang.Object forwardingRule_ = "";
/**
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string forwarding_rule = 13;
- *
- * @return The forwardingRule.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public java.lang.String getForwardingRule() {
- java.lang.Object ref = forwardingRule_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- forwardingRule_ = s;
- return s;
+ public Builder setAppEngineVersion(
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder
+ builderForValue) {
+ if (appEngineVersionBuilder_ == null) {
+ appEngineVersion_ = builderForValue.build();
} else {
- return (java.lang.String) ref;
+ appEngineVersionBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
}
/**
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string forwarding_rule = 13;
- *
- * @return The bytes for forwardingRule.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public com.google.protobuf.ByteString getForwardingRuleBytes() {
- java.lang.Object ref = forwardingRule_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- forwardingRule_ = b;
- return b;
+ public Builder mergeAppEngineVersion(
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0)
+ && appEngineVersion_ != null
+ && appEngineVersion_
+ != com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()) {
+ getAppEngineVersionBuilder().mergeFrom(value);
+ } else {
+ appEngineVersion_ = value;
+ }
} else {
- return (com.google.protobuf.ByteString) ref;
+ appEngineVersionBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
}
/**
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string forwarding_rule = 13;
- *
- * @param value The forwardingRule to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public Builder setForwardingRule(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearAppEngineVersion() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ appEngineVersion_ = null;
+ if (appEngineVersionBuilder_ != null) {
+ appEngineVersionBuilder_.dispose();
+ appEngineVersionBuilder_ = null;
}
- forwardingRule_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1580,136 +5367,144 @@ public Builder setForwardingRule(java.lang.String value) {
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string forwarding_rule = 13;
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public Builder clearForwardingRule() {
- forwardingRule_ = getDefaultInstance().getForwardingRule();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder
+ getAppEngineVersionBuilder() {
+ bitField0_ |= 0x00000400;
onChanged();
- return this;
+ return getAppEngineVersionFieldBuilder().getBuilder();
}
/**
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string forwarding_rule = 13;
- *
- * @param value The bytes for forwardingRule to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder
+ getAppEngineVersionOrBuilder() {
+ if (appEngineVersionBuilder_ != null) {
+ return appEngineVersionBuilder_.getMessageOrBuilder();
+ } else {
+ return appEngineVersion_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
}
- checkByteStringIsUtf8(value);
- forwardingRule_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
}
-
- private java.lang.Object gkeMasterCluster_ = "";
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string gke_master_cluster = 7;
- *
- * @return The gkeMasterCluster.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public java.lang.String getGkeMasterCluster() {
- java.lang.Object ref = gkeMasterCluster_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- gkeMasterCluster_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder>
+ getAppEngineVersionFieldBuilder() {
+ if (appEngineVersionBuilder_ == null) {
+ appEngineVersionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder>(
+ getAppEngineVersion(), getParentForChildren(), isClean());
+ appEngineVersion_ = null;
}
+ return appEngineVersionBuilder_;
}
+
+ private com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ cloudRunRevision_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder>
+ cloudRunRevisionBuilder_;
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string gke_master_cluster = 7;
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*
- * @return The bytes for gkeMasterCluster.
+ * @return Whether the cloudRunRevision field is set.
*/
- public com.google.protobuf.ByteString getGkeMasterClusterBytes() {
- java.lang.Object ref = gkeMasterCluster_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- gkeMasterCluster_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public boolean hasCloudRunRevision() {
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string gke_master_cluster = 7;
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*
- * @param value The gkeMasterCluster to set.
- * @return This builder for chaining.
+ * @return The cloudRunRevision.
*/
- public Builder setGkeMasterCluster(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ getCloudRunRevision() {
+ if (cloudRunRevisionBuilder_ == null) {
+ return cloudRunRevision_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()
+ : cloudRunRevision_;
+ } else {
+ return cloudRunRevisionBuilder_.getMessage();
}
- gkeMasterCluster_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
}
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string gke_master_cluster = 7;
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*/
- public Builder clearGkeMasterCluster() {
- gkeMasterCluster_ = getDefaultInstance().getGkeMasterCluster();
- bitField0_ = (bitField0_ & ~0x00000010);
+ public Builder setCloudRunRevision(
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cloudRunRevision_ = value;
+ } else {
+ cloudRunRevisionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -1717,130 +5512,147 @@ public Builder clearGkeMasterCluster() {
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string gke_master_cluster = 7;
- *
- * @param value The bytes for gkeMasterCluster to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*/
- public Builder setGkeMasterClusterBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setCloudRunRevision(
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder
+ builderForValue) {
+ if (cloudRunRevisionBuilder_ == null) {
+ cloudRunRevision_ = builderForValue.build();
+ } else {
+ cloudRunRevisionBuilder_.setMessage(builderForValue.build());
}
- checkByteStringIsUtf8(value);
- gkeMasterCluster_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
-
- private java.lang.Object cloudSqlInstance_ = "";
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string cloud_sql_instance = 8;
- *
- * @return The cloudSqlInstance.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*/
- public java.lang.String getCloudSqlInstance() {
- java.lang.Object ref = cloudSqlInstance_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- cloudSqlInstance_ = s;
- return s;
+ public Builder mergeCloudRunRevision(
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (((bitField0_ & 0x00000800) != 0)
+ && cloudRunRevision_ != null
+ && cloudRunRevision_
+ != com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()) {
+ getCloudRunRevisionBuilder().mergeFrom(value);
+ } else {
+ cloudRunRevision_ = value;
+ }
} else {
- return (java.lang.String) ref;
+ cloudRunRevisionBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
}
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string cloud_sql_instance = 8;
- *
- * @return The bytes for cloudSqlInstance.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*/
- public com.google.protobuf.ByteString getCloudSqlInstanceBytes() {
- java.lang.Object ref = cloudSqlInstance_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- cloudSqlInstance_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public Builder clearCloudRunRevision() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ cloudRunRevision_ = null;
+ if (cloudRunRevisionBuilder_ != null) {
+ cloudRunRevisionBuilder_.dispose();
+ cloudRunRevisionBuilder_ = null;
}
+ onChanged();
+ return this;
}
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string cloud_sql_instance = 8;
- *
- * @param value The cloudSqlInstance to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*/
- public Builder setCloudSqlInstance(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- cloudSqlInstance_ = value;
- bitField0_ |= 0x00000020;
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder
+ getCloudRunRevisionBuilder() {
+ bitField0_ |= 0x00000800;
onChanged();
- return this;
+ return getCloudRunRevisionFieldBuilder().getBuilder();
}
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string cloud_sql_instance = 8;
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*/
- public Builder clearCloudSqlInstance() {
- cloudSqlInstance_ = getDefaultInstance().getCloudSqlInstance();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
+ public com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ if (cloudRunRevisionBuilder_ != null) {
+ return cloudRunRevisionBuilder_.getMessageOrBuilder();
+ } else {
+ return cloudRunRevision_ == null
+ ? com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()
+ : cloudRunRevision_;
+ }
}
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** - *
string cloud_sql_instance = 8;
- *
- * @param value The bytes for cloudSqlInstance to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
*/
- public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder>
+ getCloudRunRevisionFieldBuilder() {
+ if (cloudRunRevisionBuilder_ == null) {
+ cloudRunRevisionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder>(
+ getCloudRunRevision(), getParentForChildren(), isClean());
+ cloudRunRevision_ = null;
}
- checkByteStringIsUtf8(value);
- cloudSqlInstance_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
+ return cloudRunRevisionBuilder_;
}
private java.lang.Object network_ = "";
@@ -1905,7 +5717,7 @@ public Builder setNetwork(java.lang.String value) {
throw new NullPointerException();
}
network_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -1922,7 +5734,7 @@ public Builder setNetwork(java.lang.String value) {
*/
public Builder clearNetwork() {
network_ = getDefaultInstance().getNetwork();
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
@@ -1944,7 +5756,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
network_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -1983,7 +5795,7 @@ public int getNetworkTypeValue() {
*/
public Builder setNetworkTypeValue(int value) {
networkType_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -2027,7 +5839,7 @@ public Builder setNetworkType(
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00002000;
networkType_ = value.getNumber();
onChanged();
return this;
@@ -2046,7 +5858,7 @@ public Builder setNetworkType(
* @return This builder for chaining.
*/
public Builder clearNetworkType() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00002000);
networkType_ = 0;
onChanged();
return this;
@@ -2138,7 +5950,7 @@ public Builder setProjectId(java.lang.String value) {
throw new NullPointerException();
}
projectId_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -2163,7 +5975,7 @@ public Builder setProjectId(java.lang.String value) {
*/
public Builder clearProjectId() {
projectId_ = getDefaultInstance().getProjectId();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
@@ -2193,7 +6005,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
projectId_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointInfo.java
index f5e2f02c6ad2..9c73f03dd6e0 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointInfo.java
@@ -45,6 +45,7 @@ private EndpointInfo() {
protocol_ = "";
sourceNetworkUri_ = "";
destinationNetworkUri_ = "";
+ sourceAgentUri_ = "";
}
@java.lang.Override
@@ -359,6 +360,57 @@ public com.google.protobuf.ByteString getDestinationNetworkUriBytes() {
}
}
+ public static final int SOURCE_AGENT_URI_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object sourceAgentUri_ = "";
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @return The sourceAgentUri.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceAgentUri() {
+ java.lang.Object ref = sourceAgentUri_;
+ 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();
+ sourceAgentUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @return The bytes for sourceAgentUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceAgentUriBytes() {
+ java.lang.Object ref = sourceAgentUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceAgentUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -394,6 +446,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationNetworkUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, destinationNetworkUri_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceAgentUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sourceAgentUri_);
+ }
getUnknownFields().writeTo(output);
}
@@ -424,6 +479,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationNetworkUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, destinationNetworkUri_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceAgentUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceAgentUri_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -447,6 +505,7 @@ public boolean equals(final java.lang.Object obj) {
if (getDestinationPort() != other.getDestinationPort()) return false;
if (!getSourceNetworkUri().equals(other.getSourceNetworkUri())) return false;
if (!getDestinationNetworkUri().equals(other.getDestinationNetworkUri())) return false;
+ if (!getSourceAgentUri().equals(other.getSourceAgentUri())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -472,6 +531,8 @@ public int hashCode() {
hash = (53 * hash) + getSourceNetworkUri().hashCode();
hash = (37 * hash) + DESTINATION_NETWORK_URI_FIELD_NUMBER;
hash = (53 * hash) + getDestinationNetworkUri().hashCode();
+ hash = (37 * hash) + SOURCE_AGENT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceAgentUri().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -620,6 +681,7 @@ public Builder clear() {
destinationPort_ = 0;
sourceNetworkUri_ = "";
destinationNetworkUri_ = "";
+ sourceAgentUri_ = "";
return this;
}
@@ -677,6 +739,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.EndpointInfo re
if (((from_bitField0_ & 0x00000040) != 0)) {
result.destinationNetworkUri_ = destinationNetworkUri_;
}
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.sourceAgentUri_ = sourceAgentUri_;
+ }
}
@java.lang.Override
@@ -756,6 +821,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.EndpointInfo othe
bitField0_ |= 0x00000040;
onChanged();
}
+ if (!other.getSourceAgentUri().isEmpty()) {
+ sourceAgentUri_ = other.sourceAgentUri_;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -824,6 +894,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 58
+ case 66:
+ {
+ sourceAgentUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1479,6 +1555,112 @@ public Builder setDestinationNetworkUriBytes(com.google.protobuf.ByteString valu
return this;
}
+ private java.lang.Object sourceAgentUri_ = "";
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @return The sourceAgentUri.
+ */
+ public java.lang.String getSourceAgentUri() {
+ java.lang.Object ref = sourceAgentUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceAgentUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @return The bytes for sourceAgentUri.
+ */
+ public com.google.protobuf.ByteString getSourceAgentUriBytes() {
+ java.lang.Object ref = sourceAgentUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceAgentUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @param value The sourceAgentUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceAgentUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceAgentUri_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceAgentUri() {
+ sourceAgentUri_ = getDefaultInstance().getSourceAgentUri();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @param value The bytes for sourceAgentUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceAgentUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceAgentUri_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointInfoOrBuilder.java
index 119ffe006705..4b92f6deb280 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointInfoOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointInfoOrBuilder.java
@@ -173,4 +173,29 @@ public interface EndpointInfoOrBuilder
* @return The bytes for destinationNetworkUri.
*/
com.google.protobuf.ByteString getDestinationNetworkUriBytes();
+
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @return The sourceAgentUri.
+ */
+ java.lang.String getSourceAgentUri();
+ /**
+ *
+ *
+ * + * URI of the source telemetry agent this packet originates from. + *+ * + *
string source_agent_uri = 8;
+ *
+ * @return The bytes for sourceAgentUri.
+ */
+ com.google.protobuf.ByteString getSourceAgentUriBytes();
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java
index 3a582569b1b9..f0963e49ae74 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java
@@ -29,7 +29,8 @@ public interface EndpointOrBuilder
* * The IP address of the endpoint, which can be an external or internal IP. * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). ** *
string ip_address = 1;
@@ -43,7 +44,8 @@ public interface EndpointOrBuilder
* * The IP address of the endpoint, which can be an external or internal IP. * An IPv6 address is only allowed when the test's destination is a - * [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). ** *
string ip_address = 1;
@@ -126,6 +128,135 @@ public interface EndpointOrBuilder
*/
com.google.protobuf.ByteString getForwardingRuleBytes();
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardingRuleTarget field is set.
+ */
+ boolean hasForwardingRuleTarget();
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for forwardingRuleTarget.
+ */
+ int getForwardingRuleTargetValue();
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardingRuleTarget.
+ */
+ com.google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget getForwardingRuleTarget();
+
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerId field is set.
+ */
+ boolean hasLoadBalancerId();
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerId.
+ */
+ java.lang.String getLoadBalancerId();
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for loadBalancerId.
+ */
+ com.google.protobuf.ByteString getLoadBalancerIdBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerType field is set.
+ */
+ boolean hasLoadBalancerType();
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for loadBalancerType.
+ */
+ int getLoadBalancerTypeValue();
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerType.
+ */
+ com.google.cloud.networkmanagement.v1.LoadBalancerType getLoadBalancerType();
+
/**
*
*
@@ -178,6 +309,135 @@ public interface EndpointOrBuilder
*/
com.google.protobuf.ByteString getCloudSqlInstanceBytes();
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return Whether the cloudFunction field is set.
+ */
+ boolean hasCloudFunction();
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return The cloudFunction.
+ */
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint getCloudFunction();
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder
+ getCloudFunctionOrBuilder();
+
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ boolean hasAppEngineVersion();
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint getAppEngineVersion();
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder
+ getAppEngineVersionOrBuilder();
+
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ boolean hasCloudRunRevision();
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint getCloudRunRevision();
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder();
+
/**
*
*
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java
index 0fc39ffe95e8..8a2c7b204439 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java
@@ -127,6 +127,43 @@ public enum FirewallRuleType implements com.google.protobuf.ProtocolMessageEnum
* IMPLIED_VPC_FIREWALL_RULE = 3;
*/
IMPLIED_VPC_FIREWALL_RULE(3),
+ /**
+ *
+ *
+ * + * Implicit firewall rules that are managed by serverless VPC access to + * allow ingress access. They are not visible in the Google Cloud console. + * For details, see [VPC connector's implicit + * rules](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access). + *+ * + *
SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4;
+ */
+ SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE(4),
+ /**
+ *
+ *
+ * + * Global network firewall policy rule. + * For details, see [Network firewall + * policies](https://cloud.google.com/vpc/docs/network-firewall-policies). + *+ * + *
NETWORK_FIREWALL_POLICY_RULE = 5;
+ */
+ NETWORK_FIREWALL_POLICY_RULE(5),
+ /**
+ *
+ *
+ * + * Regional network firewall policy rule. + * For details, see [Regional network firewall + * policies](https://cloud.google.com/firewall/docs/regional-firewall-policies). + *+ * + *
NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6;
+ */
+ NETWORK_REGIONAL_FIREWALL_POLICY_RULE(6),
UNRECOGNIZED(-1),
;
@@ -176,6 +213,43 @@ public enum FirewallRuleType implements com.google.protobuf.ProtocolMessageEnum
* IMPLIED_VPC_FIREWALL_RULE = 3;
*/
public static final int IMPLIED_VPC_FIREWALL_RULE_VALUE = 3;
+ /**
+ *
+ *
+ * + * Implicit firewall rules that are managed by serverless VPC access to + * allow ingress access. They are not visible in the Google Cloud console. + * For details, see [VPC connector's implicit + * rules](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access). + *+ * + *
SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4;
+ */
+ public static final int SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE_VALUE = 4;
+ /**
+ *
+ *
+ * + * Global network firewall policy rule. + * For details, see [Network firewall + * policies](https://cloud.google.com/vpc/docs/network-firewall-policies). + *+ * + *
NETWORK_FIREWALL_POLICY_RULE = 5;
+ */
+ public static final int NETWORK_FIREWALL_POLICY_RULE_VALUE = 5;
+ /**
+ *
+ *
+ * + * Regional network firewall policy rule. + * For details, see [Regional network firewall + * policies](https://cloud.google.com/firewall/docs/regional-firewall-policies). + *+ * + *
NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6;
+ */
+ public static final int NETWORK_REGIONAL_FIREWALL_POLICY_RULE_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -209,6 +283,12 @@ public static FirewallRuleType forNumber(int value) {
return VPC_FIREWALL_RULE;
case 3:
return IMPLIED_VPC_FIREWALL_RULE;
+ case 4:
+ return SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE;
+ case 5:
+ return NETWORK_FIREWALL_POLICY_RULE;
+ case 6:
+ return NETWORK_REGIONAL_FIREWALL_POLICY_RULE;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardInfo.java
index 1f584a07c45b..fecda55939f8 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardInfo.java
@@ -143,6 +143,26 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
* CLOUD_SQL_INSTANCE = 6;
*/
CLOUD_SQL_INSTANCE(6),
+ /**
+ *
+ *
+ * + * Forwarded to a VPC network in another project. + *+ * + *
ANOTHER_PROJECT = 7;
+ */
+ ANOTHER_PROJECT(7),
+ /**
+ *
+ *
+ * + * Forwarded to an NCC Hub. + *+ * + *
NCC_HUB = 8;
+ */
+ NCC_HUB(8),
UNRECOGNIZED(-1),
;
@@ -216,6 +236,26 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
* CLOUD_SQL_INSTANCE = 6;
*/
public static final int CLOUD_SQL_INSTANCE_VALUE = 6;
+ /**
+ *
+ *
+ * + * Forwarded to a VPC network in another project. + *+ * + *
ANOTHER_PROJECT = 7;
+ */
+ public static final int ANOTHER_PROJECT_VALUE = 7;
+ /**
+ *
+ *
+ * + * Forwarded to an NCC Hub. + *+ * + *
NCC_HUB = 8;
+ */
+ public static final int NCC_HUB_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -255,6 +295,10 @@ public static Target forNumber(int value) {
return IMPORTED_CUSTOM_ROUTE_NEXT_HOP;
case 6:
return CLOUD_SQL_INSTANCE;
+ case 7:
+ return ANOTHER_PROJECT;
+ case 8:
+ return NCC_HUB;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GoogleServiceInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GoogleServiceInfo.java
new file mode 100644
index 000000000000..55730799b114
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GoogleServiceInfo.java
@@ -0,0 +1,1008 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1/trace.proto
+
+package com.google.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ * + * For display only. Details of a Google Service sending packets to a + * VPC network. Although the source IP might be a publicly routable address, + * some Google Services use special routes within Google production + * infrastructure to reach Compute Engine Instances. + * https://cloud.google.com/vpc/docs/routes#special_return_paths + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.GoogleServiceInfo} + */ +public final class GoogleServiceInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.GoogleServiceInfo) + GoogleServiceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleServiceInfo.newBuilder() to construct. + private GoogleServiceInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GoogleServiceInfo() { + sourceIp_ = ""; + googleServiceType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleServiceInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_GoogleServiceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_GoogleServiceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.GoogleServiceInfo.class, + com.google.cloud.networkmanagement.v1.GoogleServiceInfo.Builder.class); + } + + /** + * + * + *
+ * Recognized type of a Google Service. + *+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType} + */ + public enum GoogleServiceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified Google Service. Includes most of Google APIs and services. + *+ * + *
GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0;
+ */
+ GOOGLE_SERVICE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Identity aware proxy. + * https://cloud.google.com/iap/docs/using-tcp-forwarding + *+ * + *
IAP = 1;
+ */
+ IAP(1),
+ /**
+ *
+ *
+ * + * One of two services sharing IP ranges: + * * Load Balancer proxy + * * Centralized Health Check prober + * https://cloud.google.com/load-balancing/docs/firewall-rules + *+ * + *
GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2;
+ */
+ GFE_PROXY_OR_HEALTH_CHECK_PROBER(2),
+ /**
+ *
+ *
+ * + * Connectivity from Cloud DNS to forwarding targets or alternate name + * servers that use private routing. + * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules + * https://cloud.google.com/dns/docs/policies#firewall-rules + *+ * + *
CLOUD_DNS = 3;
+ */
+ CLOUD_DNS(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified Google Service. Includes most of Google APIs and services. + *+ * + *
GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int GOOGLE_SERVICE_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Identity aware proxy. + * https://cloud.google.com/iap/docs/using-tcp-forwarding + *+ * + *
IAP = 1;
+ */
+ public static final int IAP_VALUE = 1;
+ /**
+ *
+ *
+ * + * One of two services sharing IP ranges: + * * Load Balancer proxy + * * Centralized Health Check prober + * https://cloud.google.com/load-balancing/docs/firewall-rules + *+ * + *
GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2;
+ */
+ public static final int GFE_PROXY_OR_HEALTH_CHECK_PROBER_VALUE = 2;
+ /**
+ *
+ *
+ * + * Connectivity from Cloud DNS to forwarding targets or alternate name + * servers that use private routing. + * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules + * https://cloud.google.com/dns/docs/policies#firewall-rules + *+ * + *
CLOUD_DNS = 3;
+ */
+ public static final int CLOUD_DNS_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 GoogleServiceType 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 GoogleServiceType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return GOOGLE_SERVICE_TYPE_UNSPECIFIED;
+ case 1:
+ return IAP;
+ case 2:
+ return GFE_PROXY_OR_HEALTH_CHECK_PROBER;
+ case 3:
+ return CLOUD_DNS;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @return The sourceIp.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceIp() {
+ java.lang.Object ref = sourceIp_;
+ 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();
+ sourceIp_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @return The bytes for sourceIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceIpBytes() {
+ java.lang.Object ref = sourceIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GOOGLE_SERVICE_TYPE_FIELD_NUMBER = 2;
+ private int googleServiceType_ = 0;
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for googleServiceType.
+ */
+ @java.lang.Override
+ public int getGoogleServiceTypeValue() {
+ return googleServiceType_;
+ }
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ getGoogleServiceType() {
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType result =
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType.forNumber(
+ googleServiceType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType.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.GeneratedMessageV3.isStringEmpty(sourceIp_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceIp_);
+ }
+ if (googleServiceType_
+ != com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ .GOOGLE_SERVICE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, googleServiceType_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceIp_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceIp_);
+ }
+ if (googleServiceType_
+ != com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ .GOOGLE_SERVICE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, googleServiceType_);
+ }
+ 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.networkmanagement.v1.GoogleServiceInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo other =
+ (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) obj;
+
+ if (!getSourceIp().equals(other.getSourceIp())) return false;
+ if (googleServiceType_ != other.googleServiceType_) 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) + SOURCE_IP_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceIp().hashCode();
+ hash = (37 * hash) + GOOGLE_SERVICE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + googleServiceType_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo 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.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo 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.networkmanagement.v1.GoogleServiceInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.GoogleServiceInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * For display only. Details of a Google Service sending packets to a + * VPC network. Although the source IP might be a publicly routable address, + * some Google Services use special routes within Google production + * infrastructure to reach Compute Engine Instances. + * https://cloud.google.com/vpc/docs/routes#special_return_paths + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.GoogleServiceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @return The sourceIp.
+ */
+ public java.lang.String getSourceIp() {
+ java.lang.Object ref = sourceIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceIp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @return The bytes for sourceIp.
+ */
+ public com.google.protobuf.ByteString getSourceIpBytes() {
+ java.lang.Object ref = sourceIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @param value The sourceIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceIp(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceIp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceIp() {
+ sourceIp_ = getDefaultInstance().getSourceIp();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @param value The bytes for sourceIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceIpBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceIp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int googleServiceType_ = 0;
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for googleServiceType.
+ */
+ @java.lang.Override
+ public int getGoogleServiceTypeValue() {
+ return googleServiceType_;
+ }
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @param value The enum numeric value on the wire for googleServiceType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGoogleServiceTypeValue(int value) {
+ googleServiceType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ getGoogleServiceType() {
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType result =
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType.forNumber(
+ googleServiceType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @param value The googleServiceType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGoogleServiceType(
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ googleServiceType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGoogleServiceType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ googleServiceType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.GoogleServiceInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.GoogleServiceInfo)
+ private static final com.google.cloud.networkmanagement.v1.GoogleServiceInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.GoogleServiceInfo();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.GoogleServiceInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @return The sourceIp.
+ */
+ java.lang.String getSourceIp();
+ /**
+ *
+ *
+ * + * Source IP address. + *+ * + *
string source_ip = 1;
+ *
+ * @return The bytes for sourceIp.
+ */
+ com.google.protobuf.ByteString getSourceIpBytes();
+
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for googleServiceType.
+ */
+ int getGoogleServiceTypeValue();
+ /**
+ *
+ *
+ * + * Recognized type of a Google Service. + *+ * + *
+ * .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType getGoogleServiceType();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java
index 856e2b60be70..6637dd3d7aed 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java
@@ -453,7 +453,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @return The serviceAccount.
*/
@java.lang.Override
@@ -479,7 +479,7 @@ public java.lang.String getServiceAccount() {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @return The bytes for serviceAccount.
*/
@java.lang.Override
@@ -1841,7 +1841,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @return The serviceAccount.
*/
@java.lang.Deprecated
@@ -1866,7 +1866,7 @@ public java.lang.String getServiceAccount() {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @return The bytes for serviceAccount.
*/
@java.lang.Deprecated
@@ -1891,7 +1891,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @param value The serviceAccount to set.
* @return This builder for chaining.
*/
@@ -1915,7 +1915,7 @@ public Builder setServiceAccount(java.lang.String value) {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1935,7 +1935,7 @@ public Builder clearServiceAccount() {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @param value The bytes for serviceAccount to set.
* @return This builder for chaining.
*/
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java
index c8549e326e4a..a1df418ce2b6 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java
@@ -234,7 +234,7 @@ public interface InstanceInfoOrBuilder
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @return The serviceAccount.
*/
@java.lang.Deprecated
@@ -249,7 +249,7 @@ public interface InstanceInfoOrBuilder
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See
- * google/cloud/networkmanagement/v1/trace.proto;l=232
+ * google/cloud/networkmanagement/v1/trace.proto;l=268
* @return The bytes for serviceAccount.
*/
@java.lang.Deprecated
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyDistribution.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyDistribution.java
new file mode 100644
index 000000000000..bd9206a398cd
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyDistribution.java
@@ -0,0 +1,984 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1/connectivity_test.proto
+
+package com.google.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ * + * Describes measured latency distribution. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.LatencyDistribution} + */ +public final class LatencyDistribution extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.LatencyDistribution) + LatencyDistributionOrBuilder { + private static final long serialVersionUID = 0L; + // Use LatencyDistribution.newBuilder() to construct. + private LatencyDistribution(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LatencyDistribution() { + latencyPercentiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LatencyDistribution(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_LatencyDistribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_LatencyDistribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.LatencyDistribution.class, + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder.class); + } + + public static final int LATENCY_PERCENTILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.networkmanagement.v1.LatencyPercentileOrBuilder>
+ getLatencyPercentilesOrBuilderList() {
+ return latencyPercentiles_;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ @java.lang.Override
+ public int getLatencyPercentilesCount() {
+ return latencyPercentiles_.size();
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.LatencyPercentile getLatencyPercentiles(int index) {
+ return latencyPercentiles_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.LatencyPercentileOrBuilder
+ getLatencyPercentilesOrBuilder(int index) {
+ return latencyPercentiles_.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 < latencyPercentiles_.size(); i++) {
+ output.writeMessage(1, latencyPercentiles_.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 < latencyPercentiles_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, latencyPercentiles_.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.networkmanagement.v1.LatencyDistribution)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.LatencyDistribution other =
+ (com.google.cloud.networkmanagement.v1.LatencyDistribution) obj;
+
+ if (!getLatencyPercentilesList().equals(other.getLatencyPercentilesList())) 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 (getLatencyPercentilesCount() > 0) {
+ hash = (37 * hash) + LATENCY_PERCENTILES_FIELD_NUMBER;
+ hash = (53 * hash) + getLatencyPercentilesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution 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.networkmanagement.v1.LatencyDistribution parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution 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.networkmanagement.v1.LatencyDistribution parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyDistribution parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.LatencyDistribution 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Describes measured latency distribution. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.LatencyDistribution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public java.util.List+ * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public int getLatencyPercentilesCount() {
+ if (latencyPercentilesBuilder_ == null) {
+ return latencyPercentiles_.size();
+ } else {
+ return latencyPercentilesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.LatencyPercentile getLatencyPercentiles(
+ int index) {
+ if (latencyPercentilesBuilder_ == null) {
+ return latencyPercentiles_.get(index);
+ } else {
+ return latencyPercentilesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder setLatencyPercentiles(
+ int index, com.google.cloud.networkmanagement.v1.LatencyPercentile value) {
+ if (latencyPercentilesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLatencyPercentilesIsMutable();
+ latencyPercentiles_.set(index, value);
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder setLatencyPercentiles(
+ int index,
+ com.google.cloud.networkmanagement.v1.LatencyPercentile.Builder builderForValue) {
+ if (latencyPercentilesBuilder_ == null) {
+ ensureLatencyPercentilesIsMutable();
+ latencyPercentiles_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder addLatencyPercentiles(
+ com.google.cloud.networkmanagement.v1.LatencyPercentile value) {
+ if (latencyPercentilesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLatencyPercentilesIsMutable();
+ latencyPercentiles_.add(value);
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder addLatencyPercentiles(
+ int index, com.google.cloud.networkmanagement.v1.LatencyPercentile value) {
+ if (latencyPercentilesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLatencyPercentilesIsMutable();
+ latencyPercentiles_.add(index, value);
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder addLatencyPercentiles(
+ com.google.cloud.networkmanagement.v1.LatencyPercentile.Builder builderForValue) {
+ if (latencyPercentilesBuilder_ == null) {
+ ensureLatencyPercentilesIsMutable();
+ latencyPercentiles_.add(builderForValue.build());
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder addLatencyPercentiles(
+ int index,
+ com.google.cloud.networkmanagement.v1.LatencyPercentile.Builder builderForValue) {
+ if (latencyPercentilesBuilder_ == null) {
+ ensureLatencyPercentilesIsMutable();
+ latencyPercentiles_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder addAllLatencyPercentiles(
+ java.lang.Iterable extends com.google.cloud.networkmanagement.v1.LatencyPercentile>
+ values) {
+ if (latencyPercentilesBuilder_ == null) {
+ ensureLatencyPercentilesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, latencyPercentiles_);
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder clearLatencyPercentiles() {
+ if (latencyPercentilesBuilder_ == null) {
+ latencyPercentiles_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public Builder removeLatencyPercentiles(int index) {
+ if (latencyPercentilesBuilder_ == null) {
+ ensureLatencyPercentilesIsMutable();
+ latencyPercentiles_.remove(index);
+ onChanged();
+ } else {
+ latencyPercentilesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.LatencyPercentile.Builder
+ getLatencyPercentilesBuilder(int index) {
+ return getLatencyPercentilesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.LatencyPercentileOrBuilder
+ getLatencyPercentilesOrBuilder(int index) {
+ if (latencyPercentilesBuilder_ == null) {
+ return latencyPercentiles_.get(index);
+ } else {
+ return latencyPercentilesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.networkmanagement.v1.LatencyPercentileOrBuilder>
+ getLatencyPercentilesOrBuilderList() {
+ if (latencyPercentilesBuilder_ != null) {
+ return latencyPercentilesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(latencyPercentiles_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.LatencyPercentile.Builder
+ addLatencyPercentilesBuilder() {
+ return getLatencyPercentilesFieldBuilder()
+ .addBuilder(com.google.cloud.networkmanagement.v1.LatencyPercentile.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.LatencyPercentile.Builder
+ addLatencyPercentilesBuilder(int index) {
+ return getLatencyPercentilesFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.networkmanagement.v1.LatencyPercentile.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ public java.util.List+ * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ java.util.List+ * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ com.google.cloud.networkmanagement.v1.LatencyPercentile getLatencyPercentiles(int index);
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ int getLatencyPercentilesCount();
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ java.util.List extends com.google.cloud.networkmanagement.v1.LatencyPercentileOrBuilder>
+ getLatencyPercentilesOrBuilderList();
+ /**
+ *
+ *
+ * + * Representative latency percentiles. + *+ * + *
repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1;
+ *
+ */
+ com.google.cloud.networkmanagement.v1.LatencyPercentileOrBuilder getLatencyPercentilesOrBuilder(
+ int index);
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyPercentile.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyPercentile.java
new file mode 100644
index 000000000000..0133632c7e0c
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LatencyPercentile.java
@@ -0,0 +1,636 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1/connectivity_test.proto
+
+package com.google.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ * + * Latency percentile rank and value. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.LatencyPercentile} + */ +public final class LatencyPercentile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.LatencyPercentile) + LatencyPercentileOrBuilder { + private static final long serialVersionUID = 0L; + // Use LatencyPercentile.newBuilder() to construct. + private LatencyPercentile(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LatencyPercentile() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LatencyPercentile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_LatencyPercentile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_LatencyPercentile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.LatencyPercentile.class, + com.google.cloud.networkmanagement.v1.LatencyPercentile.Builder.class); + } + + public static final int PERCENT_FIELD_NUMBER = 1; + private int percent_ = 0; + /** + * + * + *
+ * Percentage of samples this data point applies to. + *+ * + *
int32 percent = 1;
+ *
+ * @return The percent.
+ */
+ @java.lang.Override
+ public int getPercent() {
+ return percent_;
+ }
+
+ public static final int LATENCY_MICROS_FIELD_NUMBER = 2;
+ private long latencyMicros_ = 0L;
+ /**
+ *
+ *
+ * + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + *+ * + *
int64 latency_micros = 2;
+ *
+ * @return The latencyMicros.
+ */
+ @java.lang.Override
+ public long getLatencyMicros() {
+ return latencyMicros_;
+ }
+
+ 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 (percent_ != 0) {
+ output.writeInt32(1, percent_);
+ }
+ if (latencyMicros_ != 0L) {
+ output.writeInt64(2, latencyMicros_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (percent_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, percent_);
+ }
+ if (latencyMicros_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, latencyMicros_);
+ }
+ 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.networkmanagement.v1.LatencyPercentile)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.LatencyPercentile other =
+ (com.google.cloud.networkmanagement.v1.LatencyPercentile) obj;
+
+ if (getPercent() != other.getPercent()) return false;
+ if (getLatencyMicros() != other.getLatencyMicros()) 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) + PERCENT_FIELD_NUMBER;
+ hash = (53 * hash) + getPercent();
+ hash = (37 * hash) + LATENCY_MICROS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLatencyMicros());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile 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.networkmanagement.v1.LatencyPercentile parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile 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.networkmanagement.v1.LatencyPercentile parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.LatencyPercentile 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Latency percentile rank and value. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.LatencyPercentile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Percentage of samples this data point applies to. + *+ * + *
int32 percent = 1;
+ *
+ * @return The percent.
+ */
+ @java.lang.Override
+ public int getPercent() {
+ return percent_;
+ }
+ /**
+ *
+ *
+ * + * Percentage of samples this data point applies to. + *+ * + *
int32 percent = 1;
+ *
+ * @param value The percent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPercent(int value) {
+
+ percent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Percentage of samples this data point applies to. + *+ * + *
int32 percent = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPercent() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ percent_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long latencyMicros_;
+ /**
+ *
+ *
+ * + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + *+ * + *
int64 latency_micros = 2;
+ *
+ * @return The latencyMicros.
+ */
+ @java.lang.Override
+ public long getLatencyMicros() {
+ return latencyMicros_;
+ }
+ /**
+ *
+ *
+ * + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + *+ * + *
int64 latency_micros = 2;
+ *
+ * @param value The latencyMicros to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLatencyMicros(long value) {
+
+ latencyMicros_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + *+ * + *
int64 latency_micros = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLatencyMicros() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ latencyMicros_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.LatencyPercentile)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.LatencyPercentile)
+ private static final com.google.cloud.networkmanagement.v1.LatencyPercentile DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.LatencyPercentile();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.LatencyPercentile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Percentage of samples this data point applies to. + *+ * + *
int32 percent = 1;
+ *
+ * @return The percent.
+ */
+ int getPercent();
+
+ /**
+ *
+ *
+ * + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + *+ * + *
int64 latency_micros = 2;
+ *
+ * @return The latencyMicros.
+ */
+ long getLatencyMicros();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java
index d154ccf3caa3..871db6fe7247 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java
@@ -333,6 +333,16 @@ public enum BackendType implements com.google.protobuf.ProtocolMessageEnum {
* TARGET_POOL = 2;
*/
TARGET_POOL(2),
+ /**
+ *
+ *
+ * + * Target Instance as the load balancer's backend. + *+ * + *
TARGET_INSTANCE = 3;
+ */
+ TARGET_INSTANCE(3),
UNRECOGNIZED(-1),
;
@@ -366,6 +376,16 @@ public enum BackendType implements com.google.protobuf.ProtocolMessageEnum {
* TARGET_POOL = 2;
*/
public static final int TARGET_POOL_VALUE = 2;
+ /**
+ *
+ *
+ * + * Target Instance as the load balancer's backend. + *+ * + *
TARGET_INSTANCE = 3;
+ */
+ public static final int TARGET_INSTANCE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -397,6 +417,8 @@ public static BackendType forNumber(int value) {
return BACKEND_SERVICE;
case 2:
return TARGET_POOL;
+ case 3:
+ return TARGET_INSTANCE;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerType.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerType.java
new file mode 100644
index 000000000000..5dbd740d1b1e
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerType.java
@@ -0,0 +1,356 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1/trace.proto
+
+package com.google.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ * + * Type of a load balancer. For more information, see [Summary of Google Cloud + * load + * balancers](https://cloud.google.com/load-balancing/docs/load-balancing-overview#summary-of-google-cloud-load-balancers). + *+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.LoadBalancerType} + */ +public enum LoadBalancerType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Forwarding rule points to a different target than a load balancer or a + * load balancer type is unknown. + *+ * + *
LOAD_BALANCER_TYPE_UNSPECIFIED = 0;
+ */
+ LOAD_BALANCER_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Global external HTTP(S) load balancer. + *+ * + *
HTTPS_ADVANCED_LOAD_BALANCER = 1;
+ */
+ HTTPS_ADVANCED_LOAD_BALANCER(1),
+ /**
+ *
+ *
+ * + * Global external HTTP(S) load balancer (classic) + *+ * + *
HTTPS_LOAD_BALANCER = 2;
+ */
+ HTTPS_LOAD_BALANCER(2),
+ /**
+ *
+ *
+ * + * Regional external HTTP(S) load balancer. + *+ * + *
REGIONAL_HTTPS_LOAD_BALANCER = 3;
+ */
+ REGIONAL_HTTPS_LOAD_BALANCER(3),
+ /**
+ *
+ *
+ * + * Internal HTTP(S) load balancer. + *+ * + *
INTERNAL_HTTPS_LOAD_BALANCER = 4;
+ */
+ INTERNAL_HTTPS_LOAD_BALANCER(4),
+ /**
+ *
+ *
+ * + * External SSL proxy load balancer. + *+ * + *
SSL_PROXY_LOAD_BALANCER = 5;
+ */
+ SSL_PROXY_LOAD_BALANCER(5),
+ /**
+ *
+ *
+ * + * External TCP proxy load balancer. + *+ * + *
TCP_PROXY_LOAD_BALANCER = 6;
+ */
+ TCP_PROXY_LOAD_BALANCER(6),
+ /**
+ *
+ *
+ * + * Internal regional TCP proxy load balancer. + *+ * + *
INTERNAL_TCP_PROXY_LOAD_BALANCER = 7;
+ */
+ INTERNAL_TCP_PROXY_LOAD_BALANCER(7),
+ /**
+ *
+ *
+ * + * External TCP/UDP Network load balancer. + *+ * + *
NETWORK_LOAD_BALANCER = 8;
+ */
+ NETWORK_LOAD_BALANCER(8),
+ /**
+ *
+ *
+ * + * Target-pool based external TCP/UDP Network load balancer. + *+ * + *
LEGACY_NETWORK_LOAD_BALANCER = 9;
+ */
+ LEGACY_NETWORK_LOAD_BALANCER(9),
+ /**
+ *
+ *
+ * + * Internal TCP/UDP load balancer. + *+ * + *
TCP_UDP_INTERNAL_LOAD_BALANCER = 10;
+ */
+ TCP_UDP_INTERNAL_LOAD_BALANCER(10),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Forwarding rule points to a different target than a load balancer or a + * load balancer type is unknown. + *+ * + *
LOAD_BALANCER_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int LOAD_BALANCER_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Global external HTTP(S) load balancer. + *+ * + *
HTTPS_ADVANCED_LOAD_BALANCER = 1;
+ */
+ public static final int HTTPS_ADVANCED_LOAD_BALANCER_VALUE = 1;
+ /**
+ *
+ *
+ * + * Global external HTTP(S) load balancer (classic) + *+ * + *
HTTPS_LOAD_BALANCER = 2;
+ */
+ public static final int HTTPS_LOAD_BALANCER_VALUE = 2;
+ /**
+ *
+ *
+ * + * Regional external HTTP(S) load balancer. + *+ * + *
REGIONAL_HTTPS_LOAD_BALANCER = 3;
+ */
+ public static final int REGIONAL_HTTPS_LOAD_BALANCER_VALUE = 3;
+ /**
+ *
+ *
+ * + * Internal HTTP(S) load balancer. + *+ * + *
INTERNAL_HTTPS_LOAD_BALANCER = 4;
+ */
+ public static final int INTERNAL_HTTPS_LOAD_BALANCER_VALUE = 4;
+ /**
+ *
+ *
+ * + * External SSL proxy load balancer. + *+ * + *
SSL_PROXY_LOAD_BALANCER = 5;
+ */
+ public static final int SSL_PROXY_LOAD_BALANCER_VALUE = 5;
+ /**
+ *
+ *
+ * + * External TCP proxy load balancer. + *+ * + *
TCP_PROXY_LOAD_BALANCER = 6;
+ */
+ public static final int TCP_PROXY_LOAD_BALANCER_VALUE = 6;
+ /**
+ *
+ *
+ * + * Internal regional TCP proxy load balancer. + *+ * + *
INTERNAL_TCP_PROXY_LOAD_BALANCER = 7;
+ */
+ public static final int INTERNAL_TCP_PROXY_LOAD_BALANCER_VALUE = 7;
+ /**
+ *
+ *
+ * + * External TCP/UDP Network load balancer. + *+ * + *
NETWORK_LOAD_BALANCER = 8;
+ */
+ public static final int NETWORK_LOAD_BALANCER_VALUE = 8;
+ /**
+ *
+ *
+ * + * Target-pool based external TCP/UDP Network load balancer. + *+ * + *
LEGACY_NETWORK_LOAD_BALANCER = 9;
+ */
+ public static final int LEGACY_NETWORK_LOAD_BALANCER_VALUE = 9;
+ /**
+ *
+ *
+ * + * Internal TCP/UDP load balancer. + *+ * + *
TCP_UDP_INTERNAL_LOAD_BALANCER = 10;
+ */
+ public static final int TCP_UDP_INTERNAL_LOAD_BALANCER_VALUE = 10;
+
+ 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 LoadBalancerType 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 LoadBalancerType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return LOAD_BALANCER_TYPE_UNSPECIFIED;
+ case 1:
+ return HTTPS_ADVANCED_LOAD_BALANCER;
+ case 2:
+ return HTTPS_LOAD_BALANCER;
+ case 3:
+ return REGIONAL_HTTPS_LOAD_BALANCER;
+ case 4:
+ return INTERNAL_HTTPS_LOAD_BALANCER;
+ case 5:
+ return SSL_PROXY_LOAD_BALANCER;
+ case 6:
+ return TCP_PROXY_LOAD_BALANCER;
+ case 7:
+ return INTERNAL_TCP_PROXY_LOAD_BALANCER;
+ case 8:
+ return NETWORK_LOAD_BALANCER;
+ case 9:
+ return LEGACY_NETWORK_LOAD_BALANCER;
+ case 10:
+ return TCP_UDP_INTERNAL_LOAD_BALANCER;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Results of active probing from the last run of the test. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ProbingDetails} + */ +public final class ProbingDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ProbingDetails) + ProbingDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProbingDetails.newBuilder() to construct. + private ProbingDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ProbingDetails() { + result_ = 0; + abortCause_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProbingDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ProbingDetails.class, + com.google.cloud.networkmanagement.v1.ProbingDetails.Builder.class); + } + + /** + * + * + *
+ * Overall probing result of the test. + *+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult} + */ + public enum ProbingResult implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * No result was specified. + *+ * + *
PROBING_RESULT_UNSPECIFIED = 0;
+ */
+ PROBING_RESULT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * At least 95% of packets reached the destination. + *+ * + *
REACHABLE = 1;
+ */
+ REACHABLE(1),
+ /**
+ *
+ *
+ * + * No packets reached the destination. + *+ * + *
UNREACHABLE = 2;
+ */
+ UNREACHABLE(2),
+ /**
+ *
+ *
+ * + * Less than 95% of packets reached the destination. + *+ * + *
REACHABILITY_INCONSISTENT = 3;
+ */
+ REACHABILITY_INCONSISTENT(3),
+ /**
+ *
+ *
+ * + * Reachability could not be determined. Possible reasons are: + * * The user lacks permission to access some of the network resources + * required to run the test. + * * No valid source endpoint could be derived from the request. + * * An internal error occurred. + *+ * + *
UNDETERMINED = 4;
+ */
+ UNDETERMINED(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * No result was specified. + *+ * + *
PROBING_RESULT_UNSPECIFIED = 0;
+ */
+ public static final int PROBING_RESULT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * At least 95% of packets reached the destination. + *+ * + *
REACHABLE = 1;
+ */
+ public static final int REACHABLE_VALUE = 1;
+ /**
+ *
+ *
+ * + * No packets reached the destination. + *+ * + *
UNREACHABLE = 2;
+ */
+ public static final int UNREACHABLE_VALUE = 2;
+ /**
+ *
+ *
+ * + * Less than 95% of packets reached the destination. + *+ * + *
REACHABILITY_INCONSISTENT = 3;
+ */
+ public static final int REACHABILITY_INCONSISTENT_VALUE = 3;
+ /**
+ *
+ *
+ * + * Reachability could not be determined. Possible reasons are: + * * The user lacks permission to access some of the network resources + * required to run the test. + * * No valid source endpoint could be derived from the request. + * * An internal error occurred. + *+ * + *
UNDETERMINED = 4;
+ */
+ public static final int UNDETERMINED_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 ProbingResult 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 ProbingResult forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PROBING_RESULT_UNSPECIFIED;
+ case 1:
+ return REACHABLE;
+ case 2:
+ return UNREACHABLE;
+ case 3:
+ return REACHABILITY_INCONSISTENT;
+ case 4:
+ return UNDETERMINED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Abort cause types. + *+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause} + */ + public enum ProbingAbortCause implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * No reason was specified. + *+ * + *
PROBING_ABORT_CAUSE_UNSPECIFIED = 0;
+ */
+ PROBING_ABORT_CAUSE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The user lacks permission to access some of the + * network resources required to run the test. + *+ * + *
PERMISSION_DENIED = 1;
+ */
+ PERMISSION_DENIED(1),
+ /**
+ *
+ *
+ * + * No valid source endpoint could be derived from the request. + *+ * + *
NO_SOURCE_LOCATION = 2;
+ */
+ NO_SOURCE_LOCATION(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * No reason was specified. + *+ * + *
PROBING_ABORT_CAUSE_UNSPECIFIED = 0;
+ */
+ public static final int PROBING_ABORT_CAUSE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The user lacks permission to access some of the + * network resources required to run the test. + *+ * + *
PERMISSION_DENIED = 1;
+ */
+ public static final int PERMISSION_DENIED_VALUE = 1;
+ /**
+ *
+ *
+ * + * No valid source endpoint could be derived from the request. + *+ * + *
NO_SOURCE_LOCATION = 2;
+ */
+ public static final int NO_SOURCE_LOCATION_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 ProbingAbortCause 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 ProbingAbortCause forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PROBING_ABORT_CAUSE_UNSPECIFIED;
+ case 1:
+ return PERMISSION_DENIED;
+ case 2:
+ return NO_SOURCE_LOCATION;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @return The metropolitanArea.
+ */
+ java.lang.String getMetropolitanArea();
+ /**
+ *
+ *
+ * + * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @return The bytes for metropolitanArea.
+ */
+ com.google.protobuf.ByteString getMetropolitanAreaBytes();
+ }
+ /**
+ *
+ *
+ * + * Representation of a network edge location as per + * https://cloud.google.com/vpc/docs/edge-locations. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation} + */ + public static final class EdgeLocation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation) + EdgeLocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use EdgeLocation.newBuilder() to construct. + private EdgeLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private EdgeLocation() { + metropolitanArea_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EdgeLocation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_EdgeLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_EdgeLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.class, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder.class); + } + + public static final int METROPOLITAN_AREA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metropolitanArea_ = ""; + /** + * + * + *
+ * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @return The metropolitanArea.
+ */
+ @java.lang.Override
+ public java.lang.String getMetropolitanArea() {
+ java.lang.Object ref = metropolitanArea_;
+ 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();
+ metropolitanArea_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @return The bytes for metropolitanArea.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMetropolitanAreaBytes() {
+ java.lang.Object ref = metropolitanArea_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ metropolitanArea_ = 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.GeneratedMessageV3.isStringEmpty(metropolitanArea_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metropolitanArea_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metropolitanArea_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metropolitanArea_);
+ }
+ 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.networkmanagement.v1.ProbingDetails.EdgeLocation)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation other =
+ (com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation) obj;
+
+ if (!getMetropolitanArea().equals(other.getMetropolitanArea())) 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) + METROPOLITAN_AREA_FIELD_NUMBER;
+ hash = (53 * hash) + getMetropolitanArea().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation 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.networkmanagement.v1.ProbingDetails.EdgeLocation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation 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.networkmanagement.v1.ProbingDetails.EdgeLocation parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.ProbingDetails.EdgeLocation 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Representation of a network edge location as per + * https://cloud.google.com/vpc/docs/edge-locations. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @return The metropolitanArea.
+ */
+ public java.lang.String getMetropolitanArea() {
+ java.lang.Object ref = metropolitanArea_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ metropolitanArea_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @return The bytes for metropolitanArea.
+ */
+ public com.google.protobuf.ByteString getMetropolitanAreaBytes() {
+ java.lang.Object ref = metropolitanArea_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ metropolitanArea_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @param value The metropolitanArea to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMetropolitanArea(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metropolitanArea_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMetropolitanArea() {
+ metropolitanArea_ = getDefaultInstance().getMetropolitanArea();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of the metropolitan area. + *+ * + *
string metropolitan_area = 1;
+ *
+ * @param value The bytes for metropolitanArea to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMetropolitanAreaBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ metropolitanArea_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation)
+ private static final com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @return The enum numeric value on the wire for result.
+ */
+ @java.lang.Override
+ public int getResultValue() {
+ return result_;
+ }
+ /**
+ *
+ *
+ * + * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @return The result.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult() {
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result =
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.forNumber(result_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int VERIFY_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp verifyTime_;
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ *
+ * @return Whether the verifyTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasVerifyTime() {
+ return verifyTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ *
+ * @return The verifyTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getVerifyTime() {
+ return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_;
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() {
+ return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_;
+ }
+
+ public static final int ERROR_FIELD_NUMBER = 3;
+ private com.google.rpc.Status error_;
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return Whether the error field is set.
+ */
+ @java.lang.Override
+ public boolean hasError() {
+ return error_ != null;
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return The error.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getError() {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ }
+
+ public static final int ABORT_CAUSE_FIELD_NUMBER = 4;
+ private int abortCause_ = 0;
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for abortCause.
+ */
+ @java.lang.Override
+ public int getAbortCauseValue() {
+ return abortCause_;
+ }
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @return The abortCause.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause getAbortCause() {
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause result =
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause.forNumber(
+ abortCause_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int SENT_PROBE_COUNT_FIELD_NUMBER = 5;
+ private int sentProbeCount_ = 0;
+ /**
+ *
+ *
+ * + * Number of probes sent. + *+ * + *
int32 sent_probe_count = 5;
+ *
+ * @return The sentProbeCount.
+ */
+ @java.lang.Override
+ public int getSentProbeCount() {
+ return sentProbeCount_;
+ }
+
+ public static final int SUCCESSFUL_PROBE_COUNT_FIELD_NUMBER = 6;
+ private int successfulProbeCount_ = 0;
+ /**
+ *
+ *
+ * + * Number of probes that reached the destination. + *+ * + *
int32 successful_probe_count = 6;
+ *
+ * @return The successfulProbeCount.
+ */
+ @java.lang.Override
+ public int getSuccessfulProbeCount() {
+ return successfulProbeCount_;
+ }
+
+ public static final int ENDPOINT_INFO_FIELD_NUMBER = 7;
+ private com.google.cloud.networkmanagement.v1.EndpointInfo endpointInfo_;
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ *
+ * @return Whether the endpointInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasEndpointInfo() {
+ return endpointInfo_ != null;
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ *
+ * @return The endpointInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.EndpointInfo getEndpointInfo() {
+ return endpointInfo_ == null
+ ? com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance()
+ : endpointInfo_;
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointInfoOrBuilder() {
+ return endpointInfo_ == null
+ ? com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance()
+ : endpointInfo_;
+ }
+
+ public static final int PROBING_LATENCY_FIELD_NUMBER = 8;
+ private com.google.cloud.networkmanagement.v1.LatencyDistribution probingLatency_;
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ *
+ * @return Whether the probingLatency field is set.
+ */
+ @java.lang.Override
+ public boolean hasProbingLatency() {
+ return probingLatency_ != null;
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ *
+ * @return The probingLatency.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency() {
+ return probingLatency_ == null
+ ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance()
+ : probingLatency_;
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder
+ getProbingLatencyOrBuilder() {
+ return probingLatency_ == null
+ ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance()
+ : probingLatency_;
+ }
+
+ public static final int DESTINATION_EGRESS_LOCATION_FIELD_NUMBER = 9;
+ private com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ destinationEgressLocation_;
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ *
+ * @return Whether the destinationEgressLocation field is set.
+ */
+ @java.lang.Override
+ public boolean hasDestinationEgressLocation() {
+ return destinationEgressLocation_ != null;
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ *
+ * @return The destinationEgressLocation.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ getDestinationEgressLocation() {
+ return destinationEgressLocation_ == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance()
+ : destinationEgressLocation_;
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder
+ getDestinationEgressLocationOrBuilder() {
+ return destinationEgressLocation_ == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance()
+ : destinationEgressLocation_;
+ }
+
+ 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 (result_
+ != com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult
+ .PROBING_RESULT_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, result_);
+ }
+ if (verifyTime_ != null) {
+ output.writeMessage(2, getVerifyTime());
+ }
+ if (error_ != null) {
+ output.writeMessage(3, getError());
+ }
+ if (abortCause_
+ != com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause
+ .PROBING_ABORT_CAUSE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, abortCause_);
+ }
+ if (sentProbeCount_ != 0) {
+ output.writeInt32(5, sentProbeCount_);
+ }
+ if (successfulProbeCount_ != 0) {
+ output.writeInt32(6, successfulProbeCount_);
+ }
+ if (endpointInfo_ != null) {
+ output.writeMessage(7, getEndpointInfo());
+ }
+ if (probingLatency_ != null) {
+ output.writeMessage(8, getProbingLatency());
+ }
+ if (destinationEgressLocation_ != null) {
+ output.writeMessage(9, getDestinationEgressLocation());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (result_
+ != com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult
+ .PROBING_RESULT_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, result_);
+ }
+ if (verifyTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVerifyTime());
+ }
+ if (error_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getError());
+ }
+ if (abortCause_
+ != com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause
+ .PROBING_ABORT_CAUSE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, abortCause_);
+ }
+ if (sentProbeCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, sentProbeCount_);
+ }
+ if (successfulProbeCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, successfulProbeCount_);
+ }
+ if (endpointInfo_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndpointInfo());
+ }
+ if (probingLatency_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getProbingLatency());
+ }
+ if (destinationEgressLocation_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 9, getDestinationEgressLocation());
+ }
+ 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.networkmanagement.v1.ProbingDetails)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.ProbingDetails other =
+ (com.google.cloud.networkmanagement.v1.ProbingDetails) obj;
+
+ if (result_ != other.result_) return false;
+ if (hasVerifyTime() != other.hasVerifyTime()) return false;
+ if (hasVerifyTime()) {
+ if (!getVerifyTime().equals(other.getVerifyTime())) return false;
+ }
+ if (hasError() != other.hasError()) return false;
+ if (hasError()) {
+ if (!getError().equals(other.getError())) return false;
+ }
+ if (abortCause_ != other.abortCause_) return false;
+ if (getSentProbeCount() != other.getSentProbeCount()) return false;
+ if (getSuccessfulProbeCount() != other.getSuccessfulProbeCount()) return false;
+ if (hasEndpointInfo() != other.hasEndpointInfo()) return false;
+ if (hasEndpointInfo()) {
+ if (!getEndpointInfo().equals(other.getEndpointInfo())) return false;
+ }
+ if (hasProbingLatency() != other.hasProbingLatency()) return false;
+ if (hasProbingLatency()) {
+ if (!getProbingLatency().equals(other.getProbingLatency())) return false;
+ }
+ if (hasDestinationEgressLocation() != other.hasDestinationEgressLocation()) return false;
+ if (hasDestinationEgressLocation()) {
+ if (!getDestinationEgressLocation().equals(other.getDestinationEgressLocation()))
+ 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) + RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + result_;
+ if (hasVerifyTime()) {
+ hash = (37 * hash) + VERIFY_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getVerifyTime().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (37 * hash) + ABORT_CAUSE_FIELD_NUMBER;
+ hash = (53 * hash) + abortCause_;
+ hash = (37 * hash) + SENT_PROBE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getSentProbeCount();
+ hash = (37 * hash) + SUCCESSFUL_PROBE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getSuccessfulProbeCount();
+ if (hasEndpointInfo()) {
+ hash = (37 * hash) + ENDPOINT_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getEndpointInfo().hashCode();
+ }
+ if (hasProbingLatency()) {
+ hash = (37 * hash) + PROBING_LATENCY_FIELD_NUMBER;
+ hash = (53 * hash) + getProbingLatency().hashCode();
+ }
+ if (hasDestinationEgressLocation()) {
+ hash = (37 * hash) + DESTINATION_EGRESS_LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getDestinationEgressLocation().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails 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.networkmanagement.v1.ProbingDetails parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails 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.networkmanagement.v1.ProbingDetails parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.ProbingDetails 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Results of active probing from the last run of the test. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ProbingDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @return The enum numeric value on the wire for result.
+ */
+ @java.lang.Override
+ public int getResultValue() {
+ return result_;
+ }
+ /**
+ *
+ *
+ * + * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @param value The enum numeric value on the wire for result to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResultValue(int value) {
+ result_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @return The result.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult() {
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result =
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.forNumber(result_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @param value The result to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResult(
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ result_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResult() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ result_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp verifyTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ verifyTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ *
+ * @return Whether the verifyTime field is set.
+ */
+ public boolean hasVerifyTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ *
+ * @return The verifyTime.
+ */
+ public com.google.protobuf.Timestamp getVerifyTime() {
+ if (verifyTimeBuilder_ == null) {
+ return verifyTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : verifyTime_;
+ } else {
+ return verifyTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ public Builder setVerifyTime(com.google.protobuf.Timestamp value) {
+ if (verifyTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ verifyTime_ = value;
+ } else {
+ verifyTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ public Builder setVerifyTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (verifyTimeBuilder_ == null) {
+ verifyTime_ = builderForValue.build();
+ } else {
+ verifyTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ public Builder mergeVerifyTime(com.google.protobuf.Timestamp value) {
+ if (verifyTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && verifyTime_ != null
+ && verifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getVerifyTimeBuilder().mergeFrom(value);
+ } else {
+ verifyTime_ = value;
+ }
+ } else {
+ verifyTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ public Builder clearVerifyTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ verifyTime_ = null;
+ if (verifyTimeBuilder_ != null) {
+ verifyTimeBuilder_.dispose();
+ verifyTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getVerifyTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getVerifyTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() {
+ if (verifyTimeBuilder_ != null) {
+ return verifyTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return verifyTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : verifyTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getVerifyTimeFieldBuilder() {
+ if (verifyTimeBuilder_ == null) {
+ verifyTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getVerifyTime(), getParentForChildren(), isClean());
+ verifyTime_ = null;
+ }
+ return verifyTimeBuilder_;
+ }
+
+ private com.google.rpc.Status error_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ errorBuilder_;
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return Whether the error field is set.
+ */
+ public boolean hasError() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return The error.
+ */
+ public com.google.rpc.Status getError() {
+ if (errorBuilder_ == null) {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ } else {
+ return errorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public Builder setError(com.google.rpc.Status value) {
+ if (errorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ error_ = value;
+ } else {
+ errorBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+ if (errorBuilder_ == null) {
+ error_ = builderForValue.build();
+ } else {
+ errorBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public Builder mergeError(com.google.rpc.Status value) {
+ if (errorBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && error_ != null
+ && error_ != com.google.rpc.Status.getDefaultInstance()) {
+ getErrorBuilder().mergeFrom(value);
+ } else {
+ error_ = value;
+ }
+ } else {
+ errorBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public Builder clearError() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ error_ = null;
+ if (errorBuilder_ != null) {
+ errorBuilder_.dispose();
+ errorBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public com.google.rpc.Status.Builder getErrorBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getErrorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
+ if (errorBuilder_ != null) {
+ return errorBuilder_.getMessageOrBuilder();
+ } else {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getErrorFieldBuilder() {
+ if (errorBuilder_ == null) {
+ errorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+ error_ = null;
+ }
+ return errorBuilder_;
+ }
+
+ private int abortCause_ = 0;
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for abortCause.
+ */
+ @java.lang.Override
+ public int getAbortCauseValue() {
+ return abortCause_;
+ }
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @param value The enum numeric value on the wire for abortCause to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAbortCauseValue(int value) {
+ abortCause_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @return The abortCause.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause getAbortCause() {
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause result =
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause.forNumber(
+ abortCause_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @param value The abortCause to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAbortCause(
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ abortCause_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAbortCause() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ abortCause_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int sentProbeCount_;
+ /**
+ *
+ *
+ * + * Number of probes sent. + *+ * + *
int32 sent_probe_count = 5;
+ *
+ * @return The sentProbeCount.
+ */
+ @java.lang.Override
+ public int getSentProbeCount() {
+ return sentProbeCount_;
+ }
+ /**
+ *
+ *
+ * + * Number of probes sent. + *+ * + *
int32 sent_probe_count = 5;
+ *
+ * @param value The sentProbeCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSentProbeCount(int value) {
+
+ sentProbeCount_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of probes sent. + *+ * + *
int32 sent_probe_count = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSentProbeCount() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ sentProbeCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int successfulProbeCount_;
+ /**
+ *
+ *
+ * + * Number of probes that reached the destination. + *+ * + *
int32 successful_probe_count = 6;
+ *
+ * @return The successfulProbeCount.
+ */
+ @java.lang.Override
+ public int getSuccessfulProbeCount() {
+ return successfulProbeCount_;
+ }
+ /**
+ *
+ *
+ * + * Number of probes that reached the destination. + *+ * + *
int32 successful_probe_count = 6;
+ *
+ * @param value The successfulProbeCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSuccessfulProbeCount(int value) {
+
+ successfulProbeCount_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of probes that reached the destination. + *+ * + *
int32 successful_probe_count = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSuccessfulProbeCount() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ successfulProbeCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.networkmanagement.v1.EndpointInfo endpointInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.EndpointInfo,
+ com.google.cloud.networkmanagement.v1.EndpointInfo.Builder,
+ com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder>
+ endpointInfoBuilder_;
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ *
+ * @return Whether the endpointInfo field is set.
+ */
+ public boolean hasEndpointInfo() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ *
+ * @return The endpointInfo.
+ */
+ public com.google.cloud.networkmanagement.v1.EndpointInfo getEndpointInfo() {
+ if (endpointInfoBuilder_ == null) {
+ return endpointInfo_ == null
+ ? com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance()
+ : endpointInfo_;
+ } else {
+ return endpointInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ public Builder setEndpointInfo(com.google.cloud.networkmanagement.v1.EndpointInfo value) {
+ if (endpointInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endpointInfo_ = value;
+ } else {
+ endpointInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ public Builder setEndpointInfo(
+ com.google.cloud.networkmanagement.v1.EndpointInfo.Builder builderForValue) {
+ if (endpointInfoBuilder_ == null) {
+ endpointInfo_ = builderForValue.build();
+ } else {
+ endpointInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ public Builder mergeEndpointInfo(com.google.cloud.networkmanagement.v1.EndpointInfo value) {
+ if (endpointInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && endpointInfo_ != null
+ && endpointInfo_
+ != com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance()) {
+ getEndpointInfoBuilder().mergeFrom(value);
+ } else {
+ endpointInfo_ = value;
+ }
+ } else {
+ endpointInfoBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ public Builder clearEndpointInfo() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ endpointInfo_ = null;
+ if (endpointInfoBuilder_ != null) {
+ endpointInfoBuilder_.dispose();
+ endpointInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ public com.google.cloud.networkmanagement.v1.EndpointInfo.Builder getEndpointInfoBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getEndpointInfoFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ public com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointInfoOrBuilder() {
+ if (endpointInfoBuilder_ != null) {
+ return endpointInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return endpointInfo_ == null
+ ? com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance()
+ : endpointInfo_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.EndpointInfo,
+ com.google.cloud.networkmanagement.v1.EndpointInfo.Builder,
+ com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder>
+ getEndpointInfoFieldBuilder() {
+ if (endpointInfoBuilder_ == null) {
+ endpointInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.EndpointInfo,
+ com.google.cloud.networkmanagement.v1.EndpointInfo.Builder,
+ com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder>(
+ getEndpointInfo(), getParentForChildren(), isClean());
+ endpointInfo_ = null;
+ }
+ return endpointInfoBuilder_;
+ }
+
+ private com.google.cloud.networkmanagement.v1.LatencyDistribution probingLatency_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.LatencyDistribution,
+ com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder,
+ com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder>
+ probingLatencyBuilder_;
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ *
+ * @return Whether the probingLatency field is set.
+ */
+ public boolean hasProbingLatency() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ *
+ * @return The probingLatency.
+ */
+ public com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency() {
+ if (probingLatencyBuilder_ == null) {
+ return probingLatency_ == null
+ ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance()
+ : probingLatency_;
+ } else {
+ return probingLatencyBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ public Builder setProbingLatency(
+ com.google.cloud.networkmanagement.v1.LatencyDistribution value) {
+ if (probingLatencyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ probingLatency_ = value;
+ } else {
+ probingLatencyBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ public Builder setProbingLatency(
+ com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder builderForValue) {
+ if (probingLatencyBuilder_ == null) {
+ probingLatency_ = builderForValue.build();
+ } else {
+ probingLatencyBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ public Builder mergeProbingLatency(
+ com.google.cloud.networkmanagement.v1.LatencyDistribution value) {
+ if (probingLatencyBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && probingLatency_ != null
+ && probingLatency_
+ != com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance()) {
+ getProbingLatencyBuilder().mergeFrom(value);
+ } else {
+ probingLatency_ = value;
+ }
+ } else {
+ probingLatencyBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ public Builder clearProbingLatency() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ probingLatency_ = null;
+ if (probingLatencyBuilder_ != null) {
+ probingLatencyBuilder_.dispose();
+ probingLatencyBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ public com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder
+ getProbingLatencyBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getProbingLatencyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ public com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder
+ getProbingLatencyOrBuilder() {
+ if (probingLatencyBuilder_ != null) {
+ return probingLatencyBuilder_.getMessageOrBuilder();
+ } else {
+ return probingLatency_ == null
+ ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance()
+ : probingLatency_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.LatencyDistribution,
+ com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder,
+ com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder>
+ getProbingLatencyFieldBuilder() {
+ if (probingLatencyBuilder_ == null) {
+ probingLatencyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.LatencyDistribution,
+ com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder,
+ com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder>(
+ getProbingLatency(), getParentForChildren(), isClean());
+ probingLatency_ = null;
+ }
+ return probingLatencyBuilder_;
+ }
+
+ private com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ destinationEgressLocation_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder>
+ destinationEgressLocationBuilder_;
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ *
+ * @return Whether the destinationEgressLocation field is set.
+ */
+ public boolean hasDestinationEgressLocation() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ *
+ * @return The destinationEgressLocation.
+ */
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ getDestinationEgressLocation() {
+ if (destinationEgressLocationBuilder_ == null) {
+ return destinationEgressLocation_ == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance()
+ : destinationEgressLocation_;
+ } else {
+ return destinationEgressLocationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ public Builder setDestinationEgressLocation(
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation value) {
+ if (destinationEgressLocationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destinationEgressLocation_ = value;
+ } else {
+ destinationEgressLocationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ public Builder setDestinationEgressLocation(
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder builderForValue) {
+ if (destinationEgressLocationBuilder_ == null) {
+ destinationEgressLocation_ = builderForValue.build();
+ } else {
+ destinationEgressLocationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ public Builder mergeDestinationEgressLocation(
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation value) {
+ if (destinationEgressLocationBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0)
+ && destinationEgressLocation_ != null
+ && destinationEgressLocation_
+ != com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation
+ .getDefaultInstance()) {
+ getDestinationEgressLocationBuilder().mergeFrom(value);
+ } else {
+ destinationEgressLocation_ = value;
+ }
+ } else {
+ destinationEgressLocationBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ public Builder clearDestinationEgressLocation() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ destinationEgressLocation_ = null;
+ if (destinationEgressLocationBuilder_ != null) {
+ destinationEgressLocationBuilder_.dispose();
+ destinationEgressLocationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder
+ getDestinationEgressLocationBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getDestinationEgressLocationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder
+ getDestinationEgressLocationOrBuilder() {
+ if (destinationEgressLocationBuilder_ != null) {
+ return destinationEgressLocationBuilder_.getMessageOrBuilder();
+ } else {
+ return destinationEgressLocation_ == null
+ ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance()
+ : destinationEgressLocation_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder>
+ getDestinationEgressLocationFieldBuilder() {
+ if (destinationEgressLocationBuilder_ == null) {
+ destinationEgressLocationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder,
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder>(
+ getDestinationEgressLocation(), getParentForChildren(), isClean());
+ destinationEgressLocation_ = null;
+ }
+ return destinationEgressLocationBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.ProbingDetails)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ProbingDetails)
+ private static final com.google.cloud.networkmanagement.v1.ProbingDetails DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.ProbingDetails();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.ProbingDetails getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @return The enum numeric value on the wire for result.
+ */
+ int getResultValue();
+ /**
+ *
+ *
+ * + * The overall result of active probing. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1;
+ *
+ * @return The result.
+ */
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult();
+
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ *
+ * @return Whether the verifyTime field is set.
+ */
+ boolean hasVerifyTime();
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ *
+ * @return The verifyTime.
+ */
+ com.google.protobuf.Timestamp getVerifyTime();
+ /**
+ *
+ *
+ * + * The time that reachability was assessed through active probing. + *+ * + *
.google.protobuf.Timestamp verify_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return Whether the error field is set.
+ */
+ boolean hasError();
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return The error.
+ */
+ com.google.rpc.Status getError();
+ /**
+ *
+ *
+ * + * Details about an internal failure or the cancellation of active probing. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ com.google.rpc.StatusOrBuilder getErrorOrBuilder();
+
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for abortCause.
+ */
+ int getAbortCauseValue();
+ /**
+ *
+ *
+ * + * The reason probing was aborted. + *+ * + *
.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4;
+ *
+ *
+ * @return The abortCause.
+ */
+ com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause getAbortCause();
+
+ /**
+ *
+ *
+ * + * Number of probes sent. + *+ * + *
int32 sent_probe_count = 5;
+ *
+ * @return The sentProbeCount.
+ */
+ int getSentProbeCount();
+
+ /**
+ *
+ *
+ * + * Number of probes that reached the destination. + *+ * + *
int32 successful_probe_count = 6;
+ *
+ * @return The successfulProbeCount.
+ */
+ int getSuccessfulProbeCount();
+
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ *
+ * @return Whether the endpointInfo field is set.
+ */
+ boolean hasEndpointInfo();
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ *
+ * @return The endpointInfo.
+ */
+ com.google.cloud.networkmanagement.v1.EndpointInfo getEndpointInfo();
+ /**
+ *
+ *
+ * + * The source and destination endpoints derived from the test input and used + * for active probing. + *+ * + *
.google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7;
+ */
+ com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointInfoOrBuilder();
+
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ *
+ * @return Whether the probingLatency field is set.
+ */
+ boolean hasProbingLatency();
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ *
+ * @return The probingLatency.
+ */
+ com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency();
+ /**
+ *
+ *
+ * + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + *+ * + *
.google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8;
+ */
+ com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder getProbingLatencyOrBuilder();
+
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ *
+ * @return Whether the destinationEgressLocation field is set.
+ */
+ boolean hasDestinationEgressLocation();
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ *
+ * @return The destinationEgressLocation.
+ */
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation getDestinationEgressLocation();
+ /**
+ *
+ *
+ * + * The EdgeLocation from which a packet destined for/originating from the + * internet will egress/ingress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination/source address. + * The absence of this field *must not* be used as an indication that the + * destination/source is part of the Google network. + *+ * + *
+ * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9;
+ *
+ */
+ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder
+ getDestinationEgressLocationOrBuilder();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java
index e22f97bc2b7a..11f6cf62ca9a 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java
@@ -40,12 +40,19 @@ private RouteInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private RouteInfo() {
routeType_ = 0;
nextHopType_ = 0;
+ routeScope_ = 0;
displayName_ = "";
uri_ = "";
destIpRange_ = "";
nextHop_ = "";
networkUri_ = "";
instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ srcIpRange_ = "";
+ destPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ srcPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ protocols_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ nccHubUri_ = "";
+ nccSpokeUri_ = "";
}
@java.lang.Override
@@ -150,6 +157,16 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum {
* PEERING_DYNAMIC = 6;
*/
PEERING_DYNAMIC(6),
+ /**
+ *
+ *
+ * + * Policy based route. + *+ * + *
POLICY_BASED = 7;
+ */
+ POLICY_BASED(7),
UNRECOGNIZED(-1),
;
@@ -224,6 +241,16 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum {
* PEERING_DYNAMIC = 6;
*/
public static final int PEERING_DYNAMIC_VALUE = 6;
+ /**
+ *
+ *
+ * + * Policy based route. + *+ * + *
POLICY_BASED = 7;
+ */
+ public static final int POLICY_BASED_VALUE = 7;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -263,6 +290,8 @@ public static RouteType forNumber(int value) {
return PEERING_STATIC;
case 6:
return PEERING_DYNAMIC;
+ case 7:
+ return POLICY_BASED;
default:
return null;
}
@@ -452,6 +481,16 @@ public enum NextHopType implements com.google.protobuf.ProtocolMessageEnum {
* NEXT_HOP_ROUTER_APPLIANCE = 11;
*/
NEXT_HOP_ROUTER_APPLIANCE(11),
+ /**
+ *
+ *
+ * + * Next hop is an NCC hub. + *+ * + *
NEXT_HOP_NCC_HUB = 12;
+ */
+ NEXT_HOP_NCC_HUB(12),
UNRECOGNIZED(-1),
;
@@ -581,6 +620,16 @@ public enum NextHopType implements com.google.protobuf.ProtocolMessageEnum {
* NEXT_HOP_ROUTER_APPLIANCE = 11;
*/
public static final int NEXT_HOP_ROUTER_APPLIANCE_VALUE = 11;
+ /**
+ *
+ *
+ * + * Next hop is an NCC hub. + *+ * + *
NEXT_HOP_NCC_HUB = 12;
+ */
+ public static final int NEXT_HOP_NCC_HUB_VALUE = 12;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -630,6 +679,8 @@ public static NextHopType forNumber(int value) {
return NEXT_HOP_ILB;
case 11:
return NEXT_HOP_ROUTER_APPLIANCE;
+ case 12:
+ return NEXT_HOP_NCC_HUB;
default:
return null;
}
@@ -683,6 +734,164 @@ private NextHopType(int value) {
// @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.RouteInfo.NextHopType)
}
+ /**
+ *
+ *
+ * + * Indicates where routes are applicable. + *+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.RouteInfo.RouteScope} + */ + public enum RouteScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified scope. Default value. + *+ * + *
ROUTE_SCOPE_UNSPECIFIED = 0;
+ */
+ ROUTE_SCOPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Route is applicable to packets in Network. + *+ * + *
NETWORK = 1;
+ */
+ NETWORK(1),
+ /**
+ *
+ *
+ * + * Route is applicable to packets using NCC Hub's routing table. + *+ * + *
NCC_HUB = 2;
+ */
+ NCC_HUB(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified scope. Default value. + *+ * + *
ROUTE_SCOPE_UNSPECIFIED = 0;
+ */
+ public static final int ROUTE_SCOPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Route is applicable to packets in Network. + *+ * + *
NETWORK = 1;
+ */
+ public static final int NETWORK_VALUE = 1;
+ /**
+ *
+ *
+ * + * Route is applicable to packets using NCC Hub's routing table. + *+ * + *
NCC_HUB = 2;
+ */
+ public static final int NCC_HUB_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 RouteScope 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 RouteScope forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ROUTE_SCOPE_UNSPECIFIED;
+ case 1:
+ return NETWORK;
+ case 2:
+ return NCC_HUB;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The enum numeric value on the wire for routeScope.
+ */
+ @java.lang.Override
+ public int getRouteScopeValue() {
+ return routeScope_;
+ }
+ /**
+ *
+ *
+ * + * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The routeScope.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope getRouteScope() {
+ com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope result =
+ com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope.forNumber(routeScope_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope.UNRECOGNIZED
+ : result;
+ }
+
public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -765,7 +1011,7 @@ public com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType getNextHopTyp
*
*
* - * Name of a Compute Engine route. + * Name of a route. ** *
string display_name = 1;
@@ -788,7 +1034,7 @@ public java.lang.String getDisplayName() {
*
*
* - * Name of a Compute Engine route. + * Name of a route. ** *
string display_name = 1;
@@ -816,10 +1062,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * not have an URI. ** *
string uri = 2;
@@ -842,10 +1088,10 @@ public java.lang.String getUri() {
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * not have an URI. ** *
string uri = 2;
@@ -975,7 +1221,7 @@ public com.google.protobuf.ByteString getNextHopBytes() {
*
*
* - * URI of a Compute Engine network. + * URI of a Compute Engine network. NETWORK routes only. ** *
string network_uri = 5;
@@ -998,7 +1244,7 @@ public java.lang.String getNetworkUri() {
*
*
* - * URI of a Compute Engine network. + * URI of a Compute Engine network. NETWORK routes only. ** *
string network_uri = 5;
@@ -1100,587 +1346,1936 @@ public com.google.protobuf.ByteString getInstanceTagsBytes(int index) {
return instanceTags_.getByteString(index);
}
- private byte memoizedIsInitialized = -1;
+ public static final int SRC_IP_RANGE_FIELD_NUMBER = 10;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object srcIpRange_ = "";
+ /**
+ *
+ *
+ * + * Source IP address range of the route. Policy based routes only. + *+ * + *
string src_ip_range = 10;
+ *
+ * @return The srcIpRange.
+ */
@java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
+ public java.lang.String getSrcIpRange() {
+ java.lang.Object ref = srcIpRange_;
+ 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();
+ srcIpRange_ = s;
+ return s;
+ }
}
-
+ /**
+ *
+ *
+ * + * Source IP address range of the route. Policy based routes only. + *+ * + *
string src_ip_range = 10;
+ *
+ * @return The bytes for srcIpRange.
+ */
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destIpRange_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destIpRange_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHop_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextHop_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, networkUri_);
- }
- if (priority_ != 0) {
- output.writeInt32(6, priority_);
- }
- for (int i = 0; i < instanceTags_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 7, instanceTags_.getRaw(i));
- }
- if (routeType_
- != com.google.cloud.networkmanagement.v1.RouteInfo.RouteType.ROUTE_TYPE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(8, routeType_);
- }
- if (nextHopType_
- != com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType.NEXT_HOP_TYPE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(9, nextHopType_);
+ public com.google.protobuf.ByteString getSrcIpRangeBytes() {
+ java.lang.Object ref = srcIpRange_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ srcIpRange_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- getUnknownFields().writeTo(output);
}
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
+ public static final int DEST_PORT_RANGES_FIELD_NUMBER = 11;
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destIpRange_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destIpRange_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHop_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextHop_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, networkUri_);
- }
- if (priority_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, priority_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < instanceTags_.size(); i++) {
- dataSize += computeStringSizeNoTag(instanceTags_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getInstanceTagsList().size();
- }
- if (routeType_
- != com.google.cloud.networkmanagement.v1.RouteInfo.RouteType.ROUTE_TYPE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, routeType_);
- }
- if (nextHopType_
- != com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType.NEXT_HOP_TYPE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, nextHopType_);
- }
- 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.networkmanagement.v1.RouteInfo)) {
- return super.equals(obj);
- }
- com.google.cloud.networkmanagement.v1.RouteInfo other =
- (com.google.cloud.networkmanagement.v1.RouteInfo) obj;
-
- if (routeType_ != other.routeType_) return false;
- if (nextHopType_ != other.nextHopType_) return false;
- if (!getDisplayName().equals(other.getDisplayName())) return false;
- if (!getUri().equals(other.getUri())) return false;
- if (!getDestIpRange().equals(other.getDestIpRange())) return false;
- if (!getNextHop().equals(other.getNextHop())) return false;
- if (!getNetworkUri().equals(other.getNetworkUri())) return false;
- if (getPriority() != other.getPriority()) return false;
- if (!getInstanceTagsList().equals(other.getInstanceTagsList())) 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) + ROUTE_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + routeType_;
- hash = (37 * hash) + NEXT_HOP_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + nextHopType_;
- hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getDisplayName().hashCode();
- hash = (37 * hash) + URI_FIELD_NUMBER;
- hash = (53 * hash) + getUri().hashCode();
- hash = (37 * hash) + DEST_IP_RANGE_FIELD_NUMBER;
- hash = (53 * hash) + getDestIpRange().hashCode();
- hash = (37 * hash) + NEXT_HOP_FIELD_NUMBER;
- hash = (53 * hash) + getNextHop().hashCode();
- hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER;
- hash = (53 * hash) + getNetworkUri().hashCode();
- hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
- hash = (53 * hash) + getPriority();
- if (getInstanceTagsCount() > 0) {
- hash = (37 * hash) + INSTANCE_TAGS_FIELD_NUMBER;
- hash = (53 * hash) + getInstanceTagsList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.networkmanagement.v1.RouteInfo 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.networkmanagement.v1.RouteInfo parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.networkmanagement.v1.RouteInfo 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.networkmanagement.v1.RouteInfo parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList destPortRanges_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Destination port ranges of the route. Policy based routes only. + *+ * + *
repeated string dest_port_ranges = 11;
+ *
+ * @return A list containing the destPortRanges.
+ */
+ public com.google.protobuf.ProtocolStringList getDestPortRangesList() {
+ return destPortRanges_;
}
-
- public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ /**
+ *
+ *
+ * + * Destination port ranges of the route. Policy based routes only. + *+ * + *
repeated string dest_port_ranges = 11;
+ *
+ * @return The count of destPortRanges.
+ */
+ public int getDestPortRangesCount() {
+ return destPortRanges_.size();
}
-
- public static com.google.cloud.networkmanagement.v1.RouteInfo parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ /**
+ *
+ *
+ * + * Destination port ranges of the route. Policy based routes only. + *+ * + *
repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The destPortRanges at the given index.
+ */
+ public java.lang.String getDestPortRanges(int index) {
+ return destPortRanges_.get(index);
}
-
- public static com.google.cloud.networkmanagement.v1.RouteInfo parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ /**
+ *
+ *
+ * + * Destination port ranges of the route. Policy based routes only. + *+ * + *
repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the destPortRanges at the given index.
+ */
+ public com.google.protobuf.ByteString getDestPortRangesBytes(int index) {
+ return destPortRanges_.getByteString(index);
}
- public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
+ public static final int SRC_PORT_RANGES_FIELD_NUMBER = 12;
- public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList srcPortRanges_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @return A list containing the srcPortRanges.
+ */
+ public com.google.protobuf.ProtocolStringList getSrcPortRangesList() {
+ return srcPortRanges_;
}
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @return The count of srcPortRanges.
+ */
+ public int getSrcPortRangesCount() {
+ return srcPortRanges_.size();
}
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @param index The index of the element to return.
+ * @return The srcPortRanges at the given index.
+ */
+ public java.lang.String getSrcPortRanges(int index) {
+ return srcPortRanges_.get(index);
}
-
- public static Builder newBuilder(com.google.cloud.networkmanagement.v1.RouteInfo prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the srcPortRanges at the given index.
+ */
+ public com.google.protobuf.ByteString getSrcPortRangesBytes(int index) {
+ return srcPortRanges_.getByteString(index);
}
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
+ public static final int PROTOCOLS_FIELD_NUMBER = 13;
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList protocols_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
* - * For display only. Metadata associated with a Compute Engine route. + * Protocols of the route. Policy based routes only. ** - * Protobuf type {@code google.cloud.networkmanagement.v1.RouteInfo} + *
repeated string protocols = 13;
+ *
+ * @return A list containing the protocols.
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ * Protocols of the route. Policy based routes only. + *+ * + *
repeated string protocols = 13;
+ *
+ * @return The count of protocols.
+ */
+ public int getProtocolsCount() {
+ return protocols_.size();
+ }
+ /**
+ *
+ *
+ * + * Protocols of the route. Policy based routes only. + *+ * + *
repeated string protocols = 13;
+ *
+ * @param index The index of the element to return.
+ * @return The protocols at the given index.
+ */
+ public java.lang.String getProtocols(int index) {
+ return protocols_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Protocols of the route. Policy based routes only. + *+ * + *
repeated string protocols = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the protocols at the given index.
+ */
+ public com.google.protobuf.ByteString getProtocolsBytes(int index) {
+ return protocols_.getByteString(index);
+ }
- // Construct using com.google.cloud.networkmanagement.v1.RouteInfo.newBuilder()
- private Builder() {}
+ public static final int NCC_HUB_URI_FIELD_NUMBER = 15;
- private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nccHubUri_ = "";
+ /**
+ *
+ *
+ * + * URI of a NCC Hub. NCC_HUB routes only. + *+ * + *
optional string ncc_hub_uri = 15;
+ *
+ * @return Whether the nccHubUri field is set.
+ */
+ @java.lang.Override
+ public boolean hasNccHubUri() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * URI of a NCC Hub. NCC_HUB routes only. + *+ * + *
optional string ncc_hub_uri = 15;
+ *
+ * @return The nccHubUri.
+ */
+ @java.lang.Override
+ public java.lang.String getNccHubUri() {
+ java.lang.Object ref = nccHubUri_;
+ 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();
+ nccHubUri_ = s;
+ return s;
}
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- routeType_ = 0;
- nextHopType_ = 0;
- displayName_ = "";
- uri_ = "";
- destIpRange_ = "";
- nextHop_ = "";
- networkUri_ = "";
- priority_ = 0;
- instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
- return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a NCC Hub. NCC_HUB routes only. + *+ * + *
optional string ncc_hub_uri = 15;
+ *
+ * @return The bytes for nccHubUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNccHubUriBytes() {
+ java.lang.Object ref = nccHubUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nccHubUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
+ }
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.networkmanagement.v1.TraceProto
- .internal_static_google_cloud_networkmanagement_v1_RouteInfo_descriptor;
- }
+ public static final int NCC_SPOKE_URI_FIELD_NUMBER = 16;
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1.RouteInfo getDefaultInstanceForType() {
- return com.google.cloud.networkmanagement.v1.RouteInfo.getDefaultInstance();
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nccSpokeUri_ = "";
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @return Whether the nccSpokeUri field is set.
+ */
+ @java.lang.Override
+ public boolean hasNccSpokeUri() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @return The nccSpokeUri.
+ */
+ @java.lang.Override
+ public java.lang.String getNccSpokeUri() {
+ java.lang.Object ref = nccSpokeUri_;
+ 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();
+ nccSpokeUri_ = s;
+ return s;
}
-
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1.RouteInfo build() {
- com.google.cloud.networkmanagement.v1.RouteInfo result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
+ }
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @return The bytes for nccSpokeUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNccSpokeUriBytes() {
+ java.lang.Object ref = nccSpokeUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nccSpokeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
+ }
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1.RouteInfo buildPartial() {
- com.google.cloud.networkmanagement.v1.RouteInfo result =
- new com.google.cloud.networkmanagement.v1.RouteInfo(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
+ private byte memoizedIsInitialized = -1;
- private void buildPartial0(com.google.cloud.networkmanagement.v1.RouteInfo result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.routeType_ = routeType_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.nextHopType_ = nextHopType_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.displayName_ = displayName_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.uri_ = uri_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.destIpRange_ = destIpRange_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.nextHop_ = nextHop_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.networkUri_ = networkUri_;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.priority_ = priority_;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- instanceTags_.makeImmutable();
- result.instanceTags_ = instanceTags_;
- }
- }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
+ memoizedIsInitialized = 1;
+ return true;
+ }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
}
-
- @java.lang.Override
- public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
}
-
- @java.lang.Override
- public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destIpRange_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destIpRange_);
}
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHop_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextHop_);
}
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, networkUri_);
}
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.networkmanagement.v1.RouteInfo) {
- return mergeFrom((com.google.cloud.networkmanagement.v1.RouteInfo) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
+ if (priority_ != 0) {
+ output.writeInt32(6, priority_);
+ }
+ for (int i = 0; i < instanceTags_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, instanceTags_.getRaw(i));
+ }
+ if (routeType_
+ != com.google.cloud.networkmanagement.v1.RouteInfo.RouteType.ROUTE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(8, routeType_);
+ }
+ if (nextHopType_
+ != com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType.NEXT_HOP_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(9, nextHopType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcIpRange_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, srcIpRange_);
+ }
+ for (int i = 0; i < destPortRanges_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, destPortRanges_.getRaw(i));
+ }
+ for (int i = 0; i < srcPortRanges_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, srcPortRanges_.getRaw(i));
+ }
+ for (int i = 0; i < protocols_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, protocols_.getRaw(i));
+ }
+ if (routeScope_
+ != com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope.ROUTE_SCOPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(14, routeScope_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, nccHubUri_);
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 16, nccSpokeUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
- public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RouteInfo other) {
- if (other == com.google.cloud.networkmanagement.v1.RouteInfo.getDefaultInstance())
- return this;
- if (other.routeType_ != 0) {
- setRouteTypeValue(other.getRouteTypeValue());
- }
- if (other.nextHopType_ != 0) {
- setNextHopTypeValue(other.getNextHopTypeValue());
- }
- if (!other.getDisplayName().isEmpty()) {
- displayName_ = other.displayName_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (!other.getUri().isEmpty()) {
- uri_ = other.uri_;
- bitField0_ |= 0x00000008;
- onChanged();
- }
- if (!other.getDestIpRange().isEmpty()) {
- destIpRange_ = other.destIpRange_;
- bitField0_ |= 0x00000010;
- onChanged();
- }
- if (!other.getNextHop().isEmpty()) {
- nextHop_ = other.nextHop_;
- bitField0_ |= 0x00000020;
- onChanged();
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destIpRange_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destIpRange_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHop_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextHop_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, networkUri_);
+ }
+ if (priority_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, priority_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < instanceTags_.size(); i++) {
+ dataSize += computeStringSizeNoTag(instanceTags_.getRaw(i));
}
- if (!other.getNetworkUri().isEmpty()) {
- networkUri_ = other.networkUri_;
- bitField0_ |= 0x00000040;
- onChanged();
+ size += dataSize;
+ size += 1 * getInstanceTagsList().size();
+ }
+ if (routeType_
+ != com.google.cloud.networkmanagement.v1.RouteInfo.RouteType.ROUTE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, routeType_);
+ }
+ if (nextHopType_
+ != com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType.NEXT_HOP_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, nextHopType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcIpRange_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, srcIpRange_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < destPortRanges_.size(); i++) {
+ dataSize += computeStringSizeNoTag(destPortRanges_.getRaw(i));
}
- if (other.getPriority() != 0) {
- setPriority(other.getPriority());
+ size += dataSize;
+ size += 1 * getDestPortRangesList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < srcPortRanges_.size(); i++) {
+ dataSize += computeStringSizeNoTag(srcPortRanges_.getRaw(i));
}
- if (!other.instanceTags_.isEmpty()) {
- if (instanceTags_.isEmpty()) {
- instanceTags_ = other.instanceTags_;
- bitField0_ |= 0x00000100;
- } else {
- ensureInstanceTagsIsMutable();
- instanceTags_.addAll(other.instanceTags_);
- }
- onChanged();
+ size += dataSize;
+ size += 1 * getSrcPortRangesList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < protocols_.size(); i++) {
+ dataSize += computeStringSizeNoTag(protocols_.getRaw(i));
}
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
+ size += dataSize;
+ size += 1 * getProtocolsList().size();
+ }
+ if (routeScope_
+ != com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope.ROUTE_SCOPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, routeScope_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, nccHubUri_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, nccSpokeUri_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
- @java.lang.Override
- public final boolean isInitialized() {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
return true;
}
+ if (!(obj instanceof com.google.cloud.networkmanagement.v1.RouteInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.RouteInfo other =
+ (com.google.cloud.networkmanagement.v1.RouteInfo) obj;
- @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:
- {
- displayName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 10
- case 18:
- {
- uri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 18
- case 26:
- {
- destIpRange_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
- break;
- } // case 26
- case 34:
- {
- nextHop_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 34
- case 42:
- {
- networkUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
- break;
- } // case 42
- case 48:
- {
- priority_ = input.readInt32();
- bitField0_ |= 0x00000080;
- break;
- } // case 48
- case 58:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureInstanceTagsIsMutable();
- instanceTags_.add(s);
- break;
- } // case 58
- case 64:
- {
- routeType_ = input.readEnum();
- bitField0_ |= 0x00000001;
- break;
- } // case 64
- case 72:
- {
- nextHopType_ = input.readEnum();
- bitField0_ |= 0x00000002;
- break;
- } // case 72
- 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
+ if (routeType_ != other.routeType_) return false;
+ if (nextHopType_ != other.nextHopType_) return false;
+ if (routeScope_ != other.routeScope_) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getDestIpRange().equals(other.getDestIpRange())) return false;
+ if (!getNextHop().equals(other.getNextHop())) return false;
+ if (!getNetworkUri().equals(other.getNetworkUri())) return false;
+ if (getPriority() != other.getPriority()) return false;
+ if (!getInstanceTagsList().equals(other.getInstanceTagsList())) return false;
+ if (!getSrcIpRange().equals(other.getSrcIpRange())) return false;
+ if (!getDestPortRangesList().equals(other.getDestPortRangesList())) return false;
+ if (!getSrcPortRangesList().equals(other.getSrcPortRangesList())) return false;
+ if (!getProtocolsList().equals(other.getProtocolsList())) return false;
+ if (hasNccHubUri() != other.hasNccHubUri()) return false;
+ if (hasNccHubUri()) {
+ if (!getNccHubUri().equals(other.getNccHubUri())) return false;
+ }
+ if (hasNccSpokeUri() != other.hasNccSpokeUri()) return false;
+ if (hasNccSpokeUri()) {
+ if (!getNccSpokeUri().equals(other.getNccSpokeUri())) 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) + ROUTE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + routeType_;
+ hash = (37 * hash) + NEXT_HOP_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + nextHopType_;
+ hash = (37 * hash) + ROUTE_SCOPE_FIELD_NUMBER;
+ hash = (53 * hash) + routeScope_;
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + DEST_IP_RANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getDestIpRange().hashCode();
+ hash = (37 * hash) + NEXT_HOP_FIELD_NUMBER;
+ hash = (53 * hash) + getNextHop().hashCode();
+ hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNetworkUri().hashCode();
+ hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
+ hash = (53 * hash) + getPriority();
+ if (getInstanceTagsCount() > 0) {
+ hash = (37 * hash) + INSTANCE_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceTagsList().hashCode();
+ }
+ hash = (37 * hash) + SRC_IP_RANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getSrcIpRange().hashCode();
+ if (getDestPortRangesCount() > 0) {
+ hash = (37 * hash) + DEST_PORT_RANGES_FIELD_NUMBER;
+ hash = (53 * hash) + getDestPortRangesList().hashCode();
+ }
+ if (getSrcPortRangesCount() > 0) {
+ hash = (37 * hash) + SRC_PORT_RANGES_FIELD_NUMBER;
+ hash = (53 * hash) + getSrcPortRangesList().hashCode();
+ }
+ if (getProtocolsCount() > 0) {
+ hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getProtocolsList().hashCode();
+ }
+ if (hasNccHubUri()) {
+ hash = (37 * hash) + NCC_HUB_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNccHubUri().hashCode();
+ }
+ if (hasNccSpokeUri()) {
+ hash = (37 * hash) + NCC_SPOKE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNccSpokeUri().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo 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.networkmanagement.v1.RouteInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo 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.networkmanagement.v1.RouteInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.RouteInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.RouteInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * For display only. Metadata associated with a Compute Engine route. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.RouteInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Type of route. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ *
+ * @return The enum numeric value on the wire for routeType.
+ */
+ @java.lang.Override
+ public int getRouteTypeValue() {
+ return routeType_;
+ }
+ /**
+ *
+ *
+ * + * Type of route. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ *
+ * @param value The enum numeric value on the wire for routeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteTypeValue(int value) {
+ routeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Type of route. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ *
+ * @return The routeType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.RouteInfo.RouteType getRouteType() {
+ com.google.cloud.networkmanagement.v1.RouteInfo.RouteType result =
+ com.google.cloud.networkmanagement.v1.RouteInfo.RouteType.forNumber(routeType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.RouteInfo.RouteType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Type of route. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ *
+ * @param value The routeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteType(com.google.cloud.networkmanagement.v1.RouteInfo.RouteType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ routeType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Type of route. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRouteType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ routeType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int nextHopType_ = 0;
+ /**
+ *
+ *
+ * + * Type of next hop. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @return The enum numeric value on the wire for nextHopType.
+ */
+ @java.lang.Override
+ public int getNextHopTypeValue() {
+ return nextHopType_;
+ }
+ /**
+ *
+ *
+ * + * Type of next hop. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @param value The enum numeric value on the wire for nextHopType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextHopTypeValue(int value) {
+ nextHopType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Type of next hop. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @return The nextHopType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType getNextHopType() {
+ com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType result =
+ com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType.forNumber(nextHopType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Type of next hop. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @param value The nextHopType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextHopType(
+ com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ nextHopType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Type of next hop. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextHopType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ nextHopType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int routeScope_ = 0;
+ /**
+ *
+ *
+ * + * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The enum numeric value on the wire for routeScope.
+ */
+ @java.lang.Override
+ public int getRouteScopeValue() {
+ return routeScope_;
+ }
+ /**
+ *
+ *
+ * + * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @param value The enum numeric value on the wire for routeScope to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteScopeValue(int value) {
+ routeScope_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The routeScope.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope getRouteScope() {
+ com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope result =
+ com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope.forNumber(routeScope_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @param value The routeScope to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteScope(com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ routeScope_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRouteScope() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ routeScope_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ * + * Name of a route. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a route. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a route. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a route. + *+ * + *
string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a route. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. + * Advertised route from Google Cloud VPC to on-premises network also does + * not have an URI. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. + * Advertised route from Google Cloud VPC to on-premises network also does + * not have an URI. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. + * Advertised route from Google Cloud VPC to on-premises network also does + * not have an URI. + *+ * + *
string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. + * Advertised route from Google Cloud VPC to on-premises network also does + * not have an URI. + *+ * + *
string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. + * Advertised route from Google Cloud VPC to on-premises network also does + * not have an URI. + *+ * + *
string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object destIpRange_ = "";
+ /**
+ *
+ *
+ * + * Destination IP range of the route. + *+ * + *
string dest_ip_range = 3;
+ *
+ * @return The destIpRange.
+ */
+ public java.lang.String getDestIpRange() {
+ java.lang.Object ref = destIpRange_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ destIpRange_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Destination IP range of the route. + *+ * + *
string dest_ip_range = 3;
+ *
+ * @return The bytes for destIpRange.
+ */
+ public com.google.protobuf.ByteString getDestIpRangeBytes() {
+ java.lang.Object ref = destIpRange_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ destIpRange_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Destination IP range of the route. + *+ * + *
string dest_ip_range = 3;
+ *
+ * @param value The destIpRange to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestIpRange(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destIpRange_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Destination IP range of the route. + *+ * + *
string dest_ip_range = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDestIpRange() {
+ destIpRange_ = getDefaultInstance().getDestIpRange();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Destination IP range of the route. + *+ * + *
string dest_ip_range = 3;
+ *
+ * @param value The bytes for destIpRange to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ destIpRange_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object nextHop_ = "";
+ /**
+ *
+ *
+ * + * Next hop of the route. + *+ * + *
string next_hop = 4;
+ *
+ * @return The nextHop.
+ */
+ public java.lang.String getNextHop() {
+ java.lang.Object ref = nextHop_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextHop_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Next hop of the route. + *+ * + *
string next_hop = 4;
+ *
+ * @return The bytes for nextHop.
+ */
+ public com.google.protobuf.ByteString getNextHopBytes() {
+ java.lang.Object ref = nextHop_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextHop_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Next hop of the route. + *+ * + *
string next_hop = 4;
+ *
+ * @param value The nextHop to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextHop(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nextHop_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Next hop of the route. + *+ * + *
string next_hop = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextHop() {
+ nextHop_ = getDefaultInstance().getNextHop();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Next hop of the route. + *+ * + *
string next_hop = 4;
+ *
+ * @param value The bytes for nextHop to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextHopBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ nextHop_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
- private int bitField0_;
-
- private int routeType_ = 0;
+ private java.lang.Object networkUri_ = "";
/**
*
*
* - * Type of route. + * URI of a Compute Engine network. NETWORK routes only. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ * string network_uri = 5;
*
- * @return The enum numeric value on the wire for routeType.
+ * @return The networkUri.
*/
- @java.lang.Override
- public int getRouteTypeValue() {
- return routeType_;
+ public java.lang.String getNetworkUri() {
+ java.lang.Object ref = networkUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ networkUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
* - * Type of route. + * URI of a Compute Engine network. NETWORK routes only. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ * string network_uri = 5;
*
- * @param value The enum numeric value on the wire for routeType to set.
+ * @return The bytes for networkUri.
+ */
+ public com.google.protobuf.ByteString getNetworkUriBytes() {
+ java.lang.Object ref = networkUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ networkUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Compute Engine network. NETWORK routes only. + *+ * + *
string network_uri = 5;
+ *
+ * @param value The networkUri to set.
* @return This builder for chaining.
*/
- public Builder setRouteTypeValue(int value) {
- routeType_ = value;
- bitField0_ |= 0x00000001;
+ public Builder setNetworkUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ networkUri_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -1688,91 +3283,183 @@ public Builder setRouteTypeValue(int value) {
*
*
* - * Type of route. + * URI of a Compute Engine network. NETWORK routes only. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ * string network_uri = 5;
*
- * @return The routeType.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1.RouteInfo.RouteType getRouteType() {
- com.google.cloud.networkmanagement.v1.RouteInfo.RouteType result =
- com.google.cloud.networkmanagement.v1.RouteInfo.RouteType.forNumber(routeType_);
- return result == null
- ? com.google.cloud.networkmanagement.v1.RouteInfo.RouteType.UNRECOGNIZED
- : result;
+ public Builder clearNetworkUri() {
+ networkUri_ = getDefaultInstance().getNetworkUri();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
}
/**
*
*
* - * Type of route. + * URI of a Compute Engine network. NETWORK routes only. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ * string network_uri = 5;
*
- * @param value The routeType to set.
+ * @param value The bytes for networkUri to set.
* @return This builder for chaining.
*/
- public Builder setRouteType(com.google.cloud.networkmanagement.v1.RouteInfo.RouteType value) {
+ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000001;
- routeType_ = value.getNumber();
+ checkByteStringIsUtf8(value);
+ networkUri_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
+
+ private int priority_;
/**
*
*
* - * Type of route. + * Priority of the route. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
+ * int32 priority = 6;
+ *
+ * @return The priority.
+ */
+ @java.lang.Override
+ public int getPriority() {
+ return priority_;
+ }
+ /**
+ *
+ *
+ * + * Priority of the route. + *+ * + *
int32 priority = 6;
*
+ * @param value The priority to set.
* @return This builder for chaining.
*/
- public Builder clearRouteType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- routeType_ = 0;
+ public Builder setPriority(int value) {
+
+ priority_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Priority of the route. + *+ * + *
int32 priority = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPriority() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ priority_ = 0;
onChanged();
return this;
}
- private int nextHopType_ = 0;
+ private com.google.protobuf.LazyStringArrayList instanceTags_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureInstanceTagsIsMutable() {
+ if (!instanceTags_.isModifiable()) {
+ instanceTags_ = new com.google.protobuf.LazyStringArrayList(instanceTags_);
+ }
+ bitField0_ |= 0x00000200;
+ }
/**
*
*
* - * Type of next hop. + * Instance tags of the route. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
- * @return The enum numeric value on the wire for nextHopType.
+ * @return A list containing the instanceTags.
*/
- @java.lang.Override
- public int getNextHopTypeValue() {
- return nextHopType_;
+ public com.google.protobuf.ProtocolStringList getInstanceTagsList() {
+ instanceTags_.makeImmutable();
+ return instanceTags_;
}
/**
*
*
* - * Type of next hop. + * Instance tags of the route. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
- * @param value The enum numeric value on the wire for nextHopType to set.
+ * @return The count of instanceTags.
+ */
+ public int getInstanceTagsCount() {
+ return instanceTags_.size();
+ }
+ /**
+ *
+ *
+ * + * Instance tags of the route. + *+ * + *
repeated string instance_tags = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The instanceTags at the given index.
+ */
+ public java.lang.String getInstanceTags(int index) {
+ return instanceTags_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Instance tags of the route. + *+ * + *
repeated string instance_tags = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the instanceTags at the given index.
+ */
+ public com.google.protobuf.ByteString getInstanceTagsBytes(int index) {
+ return instanceTags_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Instance tags of the route. + *+ * + *
repeated string instance_tags = 7;
+ *
+ * @param index The index to set the value at.
+ * @param value The instanceTags to set.
* @return This builder for chaining.
*/
- public Builder setNextHopTypeValue(int value) {
- nextHopType_ = value;
- bitField0_ |= 0x00000002;
+ public Builder setInstanceTags(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInstanceTagsIsMutable();
+ instanceTags_.set(index, value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -1780,40 +3467,58 @@ public Builder setNextHopTypeValue(int value) {
*
*
* - * Type of next hop. + * Instance tags of the route. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
- * @return The nextHopType.
+ * @param value The instanceTags to add.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType getNextHopType() {
- com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType result =
- com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType.forNumber(nextHopType_);
- return result == null
- ? com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType.UNRECOGNIZED
- : result;
+ public Builder addInstanceTags(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInstanceTagsIsMutable();
+ instanceTags_.add(value);
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance tags of the route. + *+ * + *
repeated string instance_tags = 7;
+ *
+ * @param values The instanceTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllInstanceTags(java.lang.Iterable- * Type of next hop. + * Instance tags of the route. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
- * @param value The nextHopType to set.
* @return This builder for chaining.
*/
- public Builder setNextHopType(
- com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- nextHopType_ = value.getNumber();
+ public Builder clearInstanceTags() {
+ instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ ;
onChanged();
return this;
}
@@ -1821,38 +3526,44 @@ public Builder setNextHopType(
*
*
* - * Type of next hop. + * Instance tags of the route. ** - *
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
+ * @param value The bytes of the instanceTags to add.
* @return This builder for chaining.
*/
- public Builder clearNextHopType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- nextHopType_ = 0;
+ public Builder addInstanceTagsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureInstanceTagsIsMutable();
+ instanceTags_.add(value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
- private java.lang.Object displayName_ = "";
+ private java.lang.Object srcIpRange_ = "";
/**
*
*
* - * Name of a Compute Engine route. + * Source IP address range of the route. Policy based routes only. ** - *
string display_name = 1;
+ * string src_ip_range = 10;
*
- * @return The displayName.
+ * @return The srcIpRange.
*/
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
+ public java.lang.String getSrcIpRange() {
+ java.lang.Object ref = srcIpRange_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
+ srcIpRange_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1862,19 +3573,19 @@ public java.lang.String getDisplayName() {
*
*
* - * Name of a Compute Engine route. + * Source IP address range of the route. Policy based routes only. ** - *
string display_name = 1;
+ * string src_ip_range = 10;
*
- * @return The bytes for displayName.
+ * @return The bytes for srcIpRange.
*/
- public com.google.protobuf.ByteString getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
+ public com.google.protobuf.ByteString getSrcIpRangeBytes() {
+ java.lang.Object ref = srcIpRange_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- displayName_ = b;
+ srcIpRange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -1884,20 +3595,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
* - * Name of a Compute Engine route. + * Source IP address range of the route. Policy based routes only. ** - *
string display_name = 1;
+ * string src_ip_range = 10;
*
- * @param value The displayName to set.
+ * @param value The srcIpRange to set.
* @return This builder for chaining.
*/
- public Builder setDisplayName(java.lang.String value) {
+ public Builder setSrcIpRange(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- displayName_ = value;
- bitField0_ |= 0x00000004;
+ srcIpRange_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -1905,16 +3616,16 @@ public Builder setDisplayName(java.lang.String value) {
*
*
* - * Name of a Compute Engine route. + * Source IP address range of the route. Policy based routes only. ** - *
string display_name = 1;
+ * string src_ip_range = 10;
*
* @return This builder for chaining.
*/
- public Builder clearDisplayName() {
- displayName_ = getDefaultInstance().getDisplayName();
- bitField0_ = (bitField0_ & ~0x00000004);
+ public Builder clearSrcIpRange() {
+ srcIpRange_ = getDefaultInstance().getSrcIpRange();
+ bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
@@ -1922,117 +3633,113 @@ public Builder clearDisplayName() {
*
*
* - * Name of a Compute Engine route. + * Source IP address range of the route. Policy based routes only. ** - *
string display_name = 1;
+ * string src_ip_range = 10;
*
- * @param value The bytes for displayName to set.
+ * @param value The bytes for srcIpRange to set.
* @return This builder for chaining.
*/
- public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ public Builder setSrcIpRangeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- displayName_ = value;
- bitField0_ |= 0x00000004;
+ srcIpRange_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
- private java.lang.Object uri_ = "";
+ private com.google.protobuf.LazyStringArrayList destPortRanges_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDestPortRangesIsMutable() {
+ if (!destPortRanges_.isModifiable()) {
+ destPortRanges_ = new com.google.protobuf.LazyStringArrayList(destPortRanges_);
+ }
+ bitField0_ |= 0x00000800;
+ }
/**
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. - * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * Destination port ranges of the route. Policy based routes only. ** - *
string uri = 2;
+ * repeated string dest_port_ranges = 11;
*
- * @return The uri.
+ * @return A list containing the destPortRanges.
*/
- public java.lang.String getUri() {
- java.lang.Object ref = uri_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- uri_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public com.google.protobuf.ProtocolStringList getDestPortRangesList() {
+ destPortRanges_.makeImmutable();
+ return destPortRanges_;
}
/**
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. - * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * Destination port ranges of the route. Policy based routes only. ** - *
string uri = 2;
+ * repeated string dest_port_ranges = 11;
*
- * @return The bytes for uri.
+ * @return The count of destPortRanges.
*/
- public com.google.protobuf.ByteString getUriBytes() {
- java.lang.Object ref = uri_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- uri_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public int getDestPortRangesCount() {
+ return destPortRanges_.size();
}
/**
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. - * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * Destination port ranges of the route. Policy based routes only. ** - *
string uri = 2;
+ * repeated string dest_port_ranges = 11;
*
- * @param value The uri to set.
- * @return This builder for chaining.
+ * @param index The index of the element to return.
+ * @return The destPortRanges at the given index.
*/
- public Builder setUri(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- uri_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
+ public java.lang.String getDestPortRanges(int index) {
+ return destPortRanges_.get(index);
}
/**
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. - * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * Destination port ranges of the route. Policy based routes only. ** - *
string uri = 2;
+ * repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the destPortRanges at the given index.
+ */
+ public com.google.protobuf.ByteString getDestPortRangesBytes(int index) {
+ return destPortRanges_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Destination port ranges of the route. Policy based routes only. + ** + *
repeated string dest_port_ranges = 11;
+ *
+ * @param index The index to set the value at.
+ * @param value The destPortRanges to set.
* @return This builder for chaining.
*/
- public Builder clearUri() {
- uri_ = getDefaultInstance().getUri();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public Builder setDestPortRanges(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDestPortRangesIsMutable();
+ destPortRanges_.set(index, value);
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2040,197 +3747,214 @@ public Builder clearUri() {
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. - * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * Destination port ranges of the route. Policy based routes only. ** - *
string uri = 2;
+ * repeated string dest_port_ranges = 11;
*
- * @param value The bytes for uri to set.
+ * @param value The destPortRanges to add.
* @return This builder for chaining.
*/
- public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ public Builder addDestPortRanges(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- checkByteStringIsUtf8(value);
- uri_ = value;
- bitField0_ |= 0x00000008;
+ ensureDestPortRangesIsMutable();
+ destPortRanges_.add(value);
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
-
- private java.lang.Object destIpRange_ = "";
/**
*
*
* - * Destination IP range of the route. + * Destination port ranges of the route. Policy based routes only. ** - *
string dest_ip_range = 3;
+ * repeated string dest_port_ranges = 11;
*
- * @return The destIpRange.
+ * @param values The destPortRanges to add.
+ * @return This builder for chaining.
*/
- public java.lang.String getDestIpRange() {
- java.lang.Object ref = destIpRange_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- destIpRange_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public Builder addAllDestPortRanges(java.lang.Iterable- * Destination IP range of the route. + * Destination port ranges of the route. Policy based routes only. ** - *
string dest_ip_range = 3;
+ * repeated string dest_port_ranges = 11;
*
- * @return The bytes for destIpRange.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.ByteString getDestIpRangeBytes() {
- java.lang.Object ref = destIpRange_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- destIpRange_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public Builder clearDestPortRanges() {
+ destPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ ;
+ onChanged();
+ return this;
}
/**
*
*
* - * Destination IP range of the route. + * Destination port ranges of the route. Policy based routes only. ** - *
string dest_ip_range = 3;
+ * repeated string dest_port_ranges = 11;
*
- * @param value The destIpRange to set.
+ * @param value The bytes of the destPortRanges to add.
* @return This builder for chaining.
*/
- public Builder setDestIpRange(java.lang.String value) {
+ public Builder addDestPortRangesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- destIpRange_ = value;
- bitField0_ |= 0x00000010;
+ checkByteStringIsUtf8(value);
+ ensureDestPortRangesIsMutable();
+ destPortRanges_.add(value);
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
+
+ private com.google.protobuf.LazyStringArrayList srcPortRanges_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureSrcPortRangesIsMutable() {
+ if (!srcPortRanges_.isModifiable()) {
+ srcPortRanges_ = new com.google.protobuf.LazyStringArrayList(srcPortRanges_);
+ }
+ bitField0_ |= 0x00001000;
+ }
/**
*
*
* - * Destination IP range of the route. + * Source port ranges of the route. Policy based routes only. ** - *
string dest_ip_range = 3;
+ * repeated string src_port_ranges = 12;
*
- * @return This builder for chaining.
+ * @return A list containing the srcPortRanges.
*/
- public Builder clearDestIpRange() {
- destIpRange_ = getDefaultInstance().getDestIpRange();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
+ public com.google.protobuf.ProtocolStringList getSrcPortRangesList() {
+ srcPortRanges_.makeImmutable();
+ return srcPortRanges_;
}
/**
*
*
* - * Destination IP range of the route. + * Source port ranges of the route. Policy based routes only. ** - *
string dest_ip_range = 3;
+ * repeated string src_port_ranges = 12;
*
- * @param value The bytes for destIpRange to set.
- * @return This builder for chaining.
+ * @return The count of srcPortRanges.
*/
- public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- destIpRange_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
+ public int getSrcPortRangesCount() {
+ return srcPortRanges_.size();
}
-
- private java.lang.Object nextHop_ = "";
/**
*
*
* - * Next hop of the route. + * Source port ranges of the route. Policy based routes only. ** - *
string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
- * @return The nextHop.
+ * @param index The index of the element to return.
+ * @return The srcPortRanges at the given index.
*/
- public java.lang.String getNextHop() {
- java.lang.Object ref = nextHop_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- nextHop_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public java.lang.String getSrcPortRanges(int index) {
+ return srcPortRanges_.get(index);
}
/**
*
*
* - * Next hop of the route. + * Source port ranges of the route. Policy based routes only. ** - *
string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
- * @return The bytes for nextHop.
+ * @param index The index of the value to return.
+ * @return The bytes of the srcPortRanges at the given index.
*/
- public com.google.protobuf.ByteString getNextHopBytes() {
- java.lang.Object ref = nextHop_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- nextHop_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public com.google.protobuf.ByteString getSrcPortRangesBytes(int index) {
+ return srcPortRanges_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @param index The index to set the value at.
+ * @param value The srcPortRanges to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcPortRanges(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSrcPortRangesIsMutable();
+ srcPortRanges_.set(index, value);
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @param value The srcPortRanges to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSrcPortRanges(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureSrcPortRangesIsMutable();
+ srcPortRanges_.add(value);
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
}
/**
*
*
* - * Next hop of the route. + * Source port ranges of the route. Policy based routes only. ** - *
string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
- * @param value The nextHop to set.
+ * @param values The srcPortRanges to add.
* @return This builder for chaining.
*/
- public Builder setNextHop(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- nextHop_ = value;
- bitField0_ |= 0x00000020;
+ public Builder addAllSrcPortRanges(java.lang.Iterable- * Next hop of the route. + * Source port ranges of the route. Policy based routes only. ** - *
string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
* @return This builder for chaining.
*/
- public Builder clearNextHop() {
- nextHop_ = getDefaultInstance().getNextHop();
- bitField0_ = (bitField0_ & ~0x00000020);
+ public Builder clearSrcPortRanges() {
+ srcPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00001000);
+ ;
onChanged();
return this;
}
@@ -2255,105 +3980,114 @@ public Builder clearNextHop() {
*
*
* - * Next hop of the route. + * Source port ranges of the route. Policy based routes only. ** - *
string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
- * @param value The bytes for nextHop to set.
+ * @param value The bytes of the srcPortRanges to add.
* @return This builder for chaining.
*/
- public Builder setNextHopBytes(com.google.protobuf.ByteString value) {
+ public Builder addSrcPortRangesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- nextHop_ = value;
- bitField0_ |= 0x00000020;
+ ensureSrcPortRangesIsMutable();
+ srcPortRanges_.add(value);
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
- private java.lang.Object networkUri_ = "";
+ private com.google.protobuf.LazyStringArrayList protocols_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureProtocolsIsMutable() {
+ if (!protocols_.isModifiable()) {
+ protocols_ = new com.google.protobuf.LazyStringArrayList(protocols_);
+ }
+ bitField0_ |= 0x00002000;
+ }
/**
*
*
* - * URI of a Compute Engine network. + * Protocols of the route. Policy based routes only. ** - *
string network_uri = 5;
+ * repeated string protocols = 13;
*
- * @return The networkUri.
+ * @return A list containing the protocols.
*/
- public java.lang.String getNetworkUri() {
- java.lang.Object ref = networkUri_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- networkUri_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public com.google.protobuf.ProtocolStringList getProtocolsList() {
+ protocols_.makeImmutable();
+ return protocols_;
}
/**
*
*
* - * URI of a Compute Engine network. + * Protocols of the route. Policy based routes only. ** - *
string network_uri = 5;
+ * repeated string protocols = 13;
*
- * @return The bytes for networkUri.
+ * @return The count of protocols.
*/
- public com.google.protobuf.ByteString getNetworkUriBytes() {
- java.lang.Object ref = networkUri_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- networkUri_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public int getProtocolsCount() {
+ return protocols_.size();
}
/**
*
*
* - * URI of a Compute Engine network. + * Protocols of the route. Policy based routes only. ** - *
string network_uri = 5;
+ * repeated string protocols = 13;
*
- * @param value The networkUri to set.
- * @return This builder for chaining.
+ * @param index The index of the element to return.
+ * @return The protocols at the given index.
*/
- public Builder setNetworkUri(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- networkUri_ = value;
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
+ public java.lang.String getProtocols(int index) {
+ return protocols_.get(index);
}
/**
*
*
* - * URI of a Compute Engine network. + * Protocols of the route. Policy based routes only. ** - *
string network_uri = 5;
+ * repeated string protocols = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the protocols at the given index.
+ */
+ public com.google.protobuf.ByteString getProtocolsBytes(int index) {
+ return protocols_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Protocols of the route. Policy based routes only. + ** + *
repeated string protocols = 13;
+ *
+ * @param index The index to set the value at.
+ * @param value The protocols to set.
* @return This builder for chaining.
*/
- public Builder clearNetworkUri() {
- networkUri_ = getDefaultInstance().getNetworkUri();
- bitField0_ = (bitField0_ & ~0x00000040);
+ public Builder setProtocols(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProtocolsIsMutable();
+ protocols_.set(index, value);
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -2361,57 +4095,58 @@ public Builder clearNetworkUri() {
*
*
* - * URI of a Compute Engine network. + * Protocols of the route. Policy based routes only. ** - *
string network_uri = 5;
+ * repeated string protocols = 13;
*
- * @param value The bytes for networkUri to set.
+ * @param value The protocols to add.
* @return This builder for chaining.
*/
- public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
+ public Builder addProtocols(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- checkByteStringIsUtf8(value);
- networkUri_ = value;
- bitField0_ |= 0x00000040;
+ ensureProtocolsIsMutable();
+ protocols_.add(value);
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
-
- private int priority_;
/**
*
*
* - * Priority of the route. + * Protocols of the route. Policy based routes only. ** - *
int32 priority = 6;
+ * repeated string protocols = 13;
*
- * @return The priority.
+ * @param values The protocols to add.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public int getPriority() {
- return priority_;
+ public Builder addAllProtocols(java.lang.Iterable- * Priority of the route. + * Protocols of the route. Policy based routes only. ** - *
int32 priority = 6;
+ * repeated string protocols = 13;
*
- * @param value The priority to set.
* @return This builder for chaining.
*/
- public Builder setPriority(int value) {
-
- priority_ = value;
- bitField0_ |= 0x00000080;
+ public Builder clearProtocols() {
+ protocols_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00002000);
+ ;
onChanged();
return this;
}
@@ -2419,108 +4154,120 @@ public Builder setPriority(int value) {
*
*
* - * Priority of the route. + * Protocols of the route. Policy based routes only. ** - *
int32 priority = 6;
+ * repeated string protocols = 13;
*
+ * @param value The bytes of the protocols to add.
* @return This builder for chaining.
*/
- public Builder clearPriority() {
- bitField0_ = (bitField0_ & ~0x00000080);
- priority_ = 0;
+ public Builder addProtocolsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureProtocolsIsMutable();
+ protocols_.add(value);
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList instanceTags_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
-
- private void ensureInstanceTagsIsMutable() {
- if (!instanceTags_.isModifiable()) {
- instanceTags_ = new com.google.protobuf.LazyStringArrayList(instanceTags_);
- }
- bitField0_ |= 0x00000100;
- }
+ private java.lang.Object nccHubUri_ = "";
/**
*
*
* - * Instance tags of the route. + * URI of a NCC Hub. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @return A list containing the instanceTags.
+ * @return Whether the nccHubUri field is set.
*/
- public com.google.protobuf.ProtocolStringList getInstanceTagsList() {
- instanceTags_.makeImmutable();
- return instanceTags_;
+ public boolean hasNccHubUri() {
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
*
*
* - * Instance tags of the route. + * URI of a NCC Hub. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @return The count of instanceTags.
+ * @return The nccHubUri.
*/
- public int getInstanceTagsCount() {
- return instanceTags_.size();
+ public java.lang.String getNccHubUri() {
+ java.lang.Object ref = nccHubUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nccHubUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
* - * Instance tags of the route. + * URI of a NCC Hub. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @param index The index of the element to return.
- * @return The instanceTags at the given index.
+ * @return The bytes for nccHubUri.
*/
- public java.lang.String getInstanceTags(int index) {
- return instanceTags_.get(index);
+ public com.google.protobuf.ByteString getNccHubUriBytes() {
+ java.lang.Object ref = nccHubUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nccHubUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
/**
*
*
* - * Instance tags of the route. + * URI of a NCC Hub. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @param index The index of the value to return.
- * @return The bytes of the instanceTags at the given index.
+ * @param value The nccHubUri to set.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.ByteString getInstanceTagsBytes(int index) {
- return instanceTags_.getByteString(index);
+ public Builder setNccHubUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nccHubUri_ = value;
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
}
/**
*
*
* - * Instance tags of the route. + * URI of a NCC Hub. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @param index The index to set the value at.
- * @param value The instanceTags to set.
* @return This builder for chaining.
*/
- public Builder setInstanceTags(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureInstanceTagsIsMutable();
- instanceTags_.set(index, value);
- bitField0_ |= 0x00000100;
+ public Builder clearNccHubUri() {
+ nccHubUri_ = getDefaultInstance().getNccHubUri();
+ bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
@@ -2528,40 +4275,102 @@ public Builder setInstanceTags(int index, java.lang.String value) {
*
*
* - * Instance tags of the route. + * URI of a NCC Hub. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @param value The instanceTags to add.
+ * @param value The bytes for nccHubUri to set.
* @return This builder for chaining.
*/
- public Builder addInstanceTags(java.lang.String value) {
+ public Builder setNccHubUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- ensureInstanceTagsIsMutable();
- instanceTags_.add(value);
- bitField0_ |= 0x00000100;
+ checkByteStringIsUtf8(value);
+ nccHubUri_ = value;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
+
+ private java.lang.Object nccSpokeUri_ = "";
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @return Whether the nccSpokeUri field is set.
+ */
+ public boolean hasNccSpokeUri() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
/**
*
*
* - * Instance tags of the route. + * URI of a NCC Spoke. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_spoke_uri = 16;
*
- * @param values The instanceTags to add.
+ * @return The nccSpokeUri.
+ */
+ public java.lang.String getNccSpokeUri() {
+ java.lang.Object ref = nccSpokeUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nccSpokeUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @return The bytes for nccSpokeUri.
+ */
+ public com.google.protobuf.ByteString getNccSpokeUriBytes() {
+ java.lang.Object ref = nccSpokeUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nccSpokeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @param value The nccSpokeUri to set.
* @return This builder for chaining.
*/
- public Builder addAllInstanceTags(java.lang.Iterable- * Instance tags of the route. + * URI of a NCC Spoke. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_spoke_uri = 16;
*
* @return This builder for chaining.
*/
- public Builder clearInstanceTags() {
- instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- ;
+ public Builder clearNccSpokeUri() {
+ nccSpokeUri_ = getDefaultInstance().getNccSpokeUri();
+ bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
@@ -2587,22 +4395,21 @@ public Builder clearInstanceTags() {
*
*
* - * Instance tags of the route. + * URI of a NCC Spoke. NCC_HUB routes only. ** - *
repeated string instance_tags = 7;
+ * optional string ncc_spoke_uri = 16;
*
- * @param value The bytes of the instanceTags to add.
+ * @param value The bytes for nccSpokeUri to set.
* @return This builder for chaining.
*/
- public Builder addInstanceTagsBytes(com.google.protobuf.ByteString value) {
+ public Builder setNccSpokeUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- ensureInstanceTagsIsMutable();
- instanceTags_.add(value);
- bitField0_ |= 0x00000100;
+ nccSpokeUri_ = value;
+ bitField0_ |= 0x00008000;
onChanged();
return this;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java
index d8e11f5b4cff..404b08b7d69c 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java
@@ -77,7 +77,32 @@ public interface RouteInfoOrBuilder
*
*
* - * Name of a Compute Engine route. + * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The enum numeric value on the wire for routeScope.
+ */
+ int getRouteScopeValue();
+ /**
+ *
+ *
+ * + * Indicates where route is applicable. + *+ * + *
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The routeScope.
+ */
+ com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope getRouteScope();
+
+ /**
+ *
+ *
+ * + * Name of a route. ** *
string display_name = 1;
@@ -89,7 +114,7 @@ public interface RouteInfoOrBuilder
*
*
* - * Name of a Compute Engine route. + * Name of a route. ** *
string display_name = 1;
@@ -102,10 +127,10 @@ public interface RouteInfoOrBuilder
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * not have an URI. ** *
string uri = 2;
@@ -117,10 +142,10 @@ public interface RouteInfoOrBuilder
*
*
* - * URI of a Compute Engine route. - * Dynamic route from cloud router does not have a URI. + * URI of a route. + * Dynamic, peering static and peering dynamic routes do not have an URI. * Advertised route from Google Cloud VPC to on-premises network also does - * not have a URI. + * not have an URI. ** *
string uri = 2;
@@ -183,7 +208,7 @@ public interface RouteInfoOrBuilder
*
*
* - * URI of a Compute Engine network. + * URI of a Compute Engine network. NETWORK routes only. ** *
string network_uri = 5;
@@ -195,7 +220,7 @@ public interface RouteInfoOrBuilder
*
*
* - * URI of a Compute Engine network. + * URI of a Compute Engine network. NETWORK routes only. ** *
string network_uri = 5;
@@ -267,4 +292,256 @@ public interface RouteInfoOrBuilder
* @return The bytes of the instanceTags at the given index.
*/
com.google.protobuf.ByteString getInstanceTagsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Source IP address range of the route. Policy based routes only. + *+ * + *
string src_ip_range = 10;
+ *
+ * @return The srcIpRange.
+ */
+ java.lang.String getSrcIpRange();
+ /**
+ *
+ *
+ * + * Source IP address range of the route. Policy based routes only. + *+ * + *
string src_ip_range = 10;
+ *
+ * @return The bytes for srcIpRange.
+ */
+ com.google.protobuf.ByteString getSrcIpRangeBytes();
+
+ /**
+ *
+ *
+ * + * Destination port ranges of the route. Policy based routes only. + *+ * + *
repeated string dest_port_ranges = 11;
+ *
+ * @return A list containing the destPortRanges.
+ */
+ java.util.List+ * Destination port ranges of the route. Policy based routes only. + *+ * + *
repeated string dest_port_ranges = 11;
+ *
+ * @return The count of destPortRanges.
+ */
+ int getDestPortRangesCount();
+ /**
+ *
+ *
+ * + * Destination port ranges of the route. Policy based routes only. + *+ * + *
repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The destPortRanges at the given index.
+ */
+ java.lang.String getDestPortRanges(int index);
+ /**
+ *
+ *
+ * + * Destination port ranges of the route. Policy based routes only. + *+ * + *
repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the destPortRanges at the given index.
+ */
+ com.google.protobuf.ByteString getDestPortRangesBytes(int index);
+
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @return A list containing the srcPortRanges.
+ */
+ java.util.List+ * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @return The count of srcPortRanges.
+ */
+ int getSrcPortRangesCount();
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @param index The index of the element to return.
+ * @return The srcPortRanges at the given index.
+ */
+ java.lang.String getSrcPortRanges(int index);
+ /**
+ *
+ *
+ * + * Source port ranges of the route. Policy based routes only. + *+ * + *
repeated string src_port_ranges = 12;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the srcPortRanges at the given index.
+ */
+ com.google.protobuf.ByteString getSrcPortRangesBytes(int index);
+
+ /**
+ *
+ *
+ * + * Protocols of the route. Policy based routes only. + *+ * + *
repeated string protocols = 13;
+ *
+ * @return A list containing the protocols.
+ */
+ java.util.List+ * Protocols of the route. Policy based routes only. + *+ * + *
repeated string protocols = 13;
+ *
+ * @return The count of protocols.
+ */
+ int getProtocolsCount();
+ /**
+ *
+ *
+ * + * Protocols of the route. Policy based routes only. + *+ * + *
repeated string protocols = 13;
+ *
+ * @param index The index of the element to return.
+ * @return The protocols at the given index.
+ */
+ java.lang.String getProtocols(int index);
+ /**
+ *
+ *
+ * + * Protocols of the route. Policy based routes only. + *+ * + *
repeated string protocols = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the protocols at the given index.
+ */
+ com.google.protobuf.ByteString getProtocolsBytes(int index);
+
+ /**
+ *
+ *
+ * + * URI of a NCC Hub. NCC_HUB routes only. + *+ * + *
optional string ncc_hub_uri = 15;
+ *
+ * @return Whether the nccHubUri field is set.
+ */
+ boolean hasNccHubUri();
+ /**
+ *
+ *
+ * + * URI of a NCC Hub. NCC_HUB routes only. + *+ * + *
optional string ncc_hub_uri = 15;
+ *
+ * @return The nccHubUri.
+ */
+ java.lang.String getNccHubUri();
+ /**
+ *
+ *
+ * + * URI of a NCC Hub. NCC_HUB routes only. + *+ * + *
optional string ncc_hub_uri = 15;
+ *
+ * @return The bytes for nccHubUri.
+ */
+ com.google.protobuf.ByteString getNccHubUriBytes();
+
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @return Whether the nccSpokeUri field is set.
+ */
+ boolean hasNccSpokeUri();
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @return The nccSpokeUri.
+ */
+ java.lang.String getNccSpokeUri();
+ /**
+ *
+ *
+ * + * URI of a NCC Spoke. NCC_HUB routes only. + *+ * + *
optional string ncc_spoke_uri = 16;
+ *
+ * @return The bytes for nccSpokeUri.
+ */
+ com.google.protobuf.ByteString getNccSpokeUriBytes();
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java
index f36925710d1c..79a1781bdd17 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java
@@ -108,6 +108,19 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
* START_FROM_INTERNET = 2;
*/
START_FROM_INTERNET(2),
+ /**
+ *
+ *
+ * + * Initial state: packet originating from a Google service. Some Google + * services, such as health check probers or Identity Aware Proxy use + * special routes, outside VPC routing configuration to reach Compute Engine + * Instances. + *+ * + *
START_FROM_GOOGLE_SERVICE = 27;
+ */
+ START_FROM_GOOGLE_SERVICE(27),
/**
*
*
@@ -143,6 +156,39 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
* START_FROM_CLOUD_SQL_INSTANCE = 22;
*/
START_FROM_CLOUD_SQL_INSTANCE(22),
+ /**
+ *
+ *
+ * + * Initial state: packet originating from a Cloud Function. + * A CloudFunctionInfo is populated with starting function information. + *+ * + *
START_FROM_CLOUD_FUNCTION = 23;
+ */
+ START_FROM_CLOUD_FUNCTION(23),
+ /**
+ *
+ *
+ * + * Initial state: packet originating from an App Engine service version. + * An AppEngineVersionInfo is populated with starting version information. + *+ * + *
START_FROM_APP_ENGINE_VERSION = 25;
+ */
+ START_FROM_APP_ENGINE_VERSION(25),
+ /**
+ *
+ *
+ * + * Initial state: packet originating from a Cloud Run revision. + * A CloudRunRevisionInfo is populated with starting revision information. + *+ * + *
START_FROM_CLOUD_RUN_REVISION = 26;
+ */
+ START_FROM_CLOUD_RUN_REVISION(26),
/**
*
*
@@ -244,6 +290,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
* ARRIVE_AT_VPN_TUNNEL = 13;
*/
ARRIVE_AT_VPN_TUNNEL(13),
+ /**
+ *
+ *
+ * + * Forwarding state: arriving at a VPC connector. + *+ * + *
ARRIVE_AT_VPC_CONNECTOR = 24;
+ */
+ ARRIVE_AT_VPC_CONNECTOR(24),
/**
*
*
@@ -352,6 +408,19 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
* START_FROM_INTERNET = 2;
*/
public static final int START_FROM_INTERNET_VALUE = 2;
+ /**
+ *
+ *
+ * + * Initial state: packet originating from a Google service. Some Google + * services, such as health check probers or Identity Aware Proxy use + * special routes, outside VPC routing configuration to reach Compute Engine + * Instances. + *+ * + *
START_FROM_GOOGLE_SERVICE = 27;
+ */
+ public static final int START_FROM_GOOGLE_SERVICE_VALUE = 27;
/**
*
*
@@ -387,6 +456,39 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
* START_FROM_CLOUD_SQL_INSTANCE = 22;
*/
public static final int START_FROM_CLOUD_SQL_INSTANCE_VALUE = 22;
+ /**
+ *
+ *
+ * + * Initial state: packet originating from a Cloud Function. + * A CloudFunctionInfo is populated with starting function information. + *+ * + *
START_FROM_CLOUD_FUNCTION = 23;
+ */
+ public static final int START_FROM_CLOUD_FUNCTION_VALUE = 23;
+ /**
+ *
+ *
+ * + * Initial state: packet originating from an App Engine service version. + * An AppEngineVersionInfo is populated with starting version information. + *+ * + *
START_FROM_APP_ENGINE_VERSION = 25;
+ */
+ public static final int START_FROM_APP_ENGINE_VERSION_VALUE = 25;
+ /**
+ *
+ *
+ * + * Initial state: packet originating from a Cloud Run revision. + * A CloudRunRevisionInfo is populated with starting revision information. + *+ * + *
START_FROM_CLOUD_RUN_REVISION = 26;
+ */
+ public static final int START_FROM_CLOUD_RUN_REVISION_VALUE = 26;
/**
*
*
@@ -488,6 +590,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
* ARRIVE_AT_VPN_TUNNEL = 13;
*/
public static final int ARRIVE_AT_VPN_TUNNEL_VALUE = 13;
+ /**
+ *
+ *
+ * + * Forwarding state: arriving at a VPC connector. + *+ * + *
ARRIVE_AT_VPC_CONNECTOR = 24;
+ */
+ public static final int ARRIVE_AT_VPC_CONNECTOR_VALUE = 24;
/**
*
*
@@ -592,12 +704,20 @@ public static State forNumber(int value) {
return START_FROM_INSTANCE;
case 2:
return START_FROM_INTERNET;
+ case 27:
+ return START_FROM_GOOGLE_SERVICE;
case 3:
return START_FROM_PRIVATE_NETWORK;
case 21:
return START_FROM_GKE_MASTER;
case 22:
return START_FROM_CLOUD_SQL_INSTANCE;
+ case 23:
+ return START_FROM_CLOUD_FUNCTION;
+ case 25:
+ return START_FROM_APP_ENGINE_VERSION;
+ case 26:
+ return START_FROM_CLOUD_RUN_REVISION;
case 4:
return APPLY_INGRESS_FIREWALL_RULE;
case 5:
@@ -618,6 +738,8 @@ public static State forNumber(int value) {
return ARRIVE_AT_VPN_GATEWAY;
case 13:
return ARRIVE_AT_VPN_TUNNEL;
+ case 24:
+ return ARRIVE_AT_VPC_CONNECTOR;
case 14:
return NAT;
case 15:
@@ -698,9 +820,11 @@ public enum StepInfoCase
FIREWALL(6),
ROUTE(7),
ENDPOINT(8),
+ GOOGLE_SERVICE(24),
FORWARDING_RULE(9),
VPN_GATEWAY(10),
VPN_TUNNEL(11),
+ VPC_CONNECTOR(21),
DELIVER(12),
FORWARD(13),
ABORT(14),
@@ -709,6 +833,9 @@ public enum StepInfoCase
NETWORK(17),
GKE_MASTER(18),
CLOUD_SQL_INSTANCE(19),
+ CLOUD_FUNCTION(20),
+ APP_ENGINE_VERSION(22),
+ CLOUD_RUN_REVISION(23),
STEPINFO_NOT_SET(0);
private final int value;
@@ -735,12 +862,16 @@ public static StepInfoCase forNumber(int value) {
return ROUTE;
case 8:
return ENDPOINT;
+ case 24:
+ return GOOGLE_SERVICE;
case 9:
return FORWARDING_RULE;
case 10:
return VPN_GATEWAY;
case 11:
return VPN_TUNNEL;
+ case 21:
+ return VPC_CONNECTOR;
case 12:
return DELIVER;
case 13:
@@ -757,6 +888,12 @@ public static StepInfoCase forNumber(int value) {
return GKE_MASTER;
case 19:
return CLOUD_SQL_INSTANCE;
+ case 20:
+ return CLOUD_FUNCTION;
+ case 22:
+ return APP_ENGINE_VERSION;
+ case 23:
+ return CLOUD_RUN_REVISION;
case 0:
return STEPINFO_NOT_SET;
default:
@@ -1141,6 +1278,58 @@ public com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointOr
return com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance();
}
+ public static final int GOOGLE_SERVICE_FIELD_NUMBER = 24;
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ *
+ * @return Whether the googleService field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogleService() {
+ return stepInfoCase_ == 24;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ *
+ * @return The googleService.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.GoogleServiceInfo getGoogleService() {
+ if (stepInfoCase_ == 24) {
+ return (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.GoogleServiceInfo.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.GoogleServiceInfoOrBuilder
+ getGoogleServiceOrBuilder() {
+ if (stepInfoCase_ == 24) {
+ return (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.GoogleServiceInfo.getDefaultInstance();
+ }
+
public static final int FORWARDING_RULE_FIELD_NUMBER = 9;
/**
*
@@ -1295,6 +1484,58 @@ public com.google.cloud.networkmanagement.v1.VpnTunnelInfoOrBuilder getVpnTunnel
return com.google.cloud.networkmanagement.v1.VpnTunnelInfo.getDefaultInstance();
}
+ public static final int VPC_CONNECTOR_FIELD_NUMBER = 21;
+ /**
+ *
+ *
+ * + * Display information of a VPC connector. + *+ * + *
.google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
+ *
+ * @return Whether the vpcConnector field is set.
+ */
+ @java.lang.Override
+ public boolean hasVpcConnector() {
+ return stepInfoCase_ == 21;
+ }
+ /**
+ *
+ *
+ * + * Display information of a VPC connector. + *+ * + *
.google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
+ *
+ * @return The vpcConnector.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.VpcConnectorInfo getVpcConnector() {
+ if (stepInfoCase_ == 21) {
+ return (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.VpcConnectorInfo.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Display information of a VPC connector. + *+ * + *
.google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.VpcConnectorInfoOrBuilder
+ getVpcConnectorOrBuilder() {
+ if (stepInfoCase_ == 21) {
+ return (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.VpcConnectorInfo.getDefaultInstance();
+ }
+
public static final int DELIVER_FIELD_NUMBER = 12;
/**
*
@@ -1705,6 +1946,162 @@ public com.google.cloud.networkmanagement.v1.CloudSQLInstanceInfo getCloudSqlIns
return com.google.cloud.networkmanagement.v1.CloudSQLInstanceInfo.getDefaultInstance();
}
+ public static final int CLOUD_FUNCTION_FIELD_NUMBER = 20;
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ *
+ * @return Whether the cloudFunction field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudFunction() {
+ return stepInfoCase_ == 20;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ *
+ * @return The cloudFunction.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.CloudFunctionInfo getCloudFunction() {
+ if (stepInfoCase_ == 20) {
+ return (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder
+ getCloudFunctionOrBuilder() {
+ if (stepInfoCase_ == 20) {
+ return (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance();
+ }
+
+ public static final int APP_ENGINE_VERSION_FIELD_NUMBER = 22;
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasAppEngineVersion() {
+ return stepInfoCase_ == 22;
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ * @return The appEngineVersion.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.AppEngineVersionInfo getAppEngineVersion() {
+ if (stepInfoCase_ == 22) {
+ return (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.AppEngineVersionInfoOrBuilder
+ getAppEngineVersionOrBuilder() {
+ if (stepInfoCase_ == 22) {
+ return (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.getDefaultInstance();
+ }
+
+ public static final int CLOUD_RUN_REVISION_FIELD_NUMBER = 23;
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudRunRevision() {
+ return stepInfoCase_ == 23;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ * @return The cloudRunRevision.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo getCloudRunRevision() {
+ if (stepInfoCase_ == 23) {
+ return (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.CloudRunRevisionInfoOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ if (stepInfoCase_ == 23) {
+ return (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1777,6 +2174,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
19, (com.google.cloud.networkmanagement.v1.CloudSQLInstanceInfo) stepInfo_);
}
+ if (stepInfoCase_ == 20) {
+ output.writeMessage(20, (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 21) {
+ output.writeMessage(21, (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 22) {
+ output.writeMessage(
+ 22, (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 23) {
+ output.writeMessage(
+ 23, (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 24) {
+ output.writeMessage(24, (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1873,6 +2287,31 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
19, (com.google.cloud.networkmanagement.v1.CloudSQLInstanceInfo) stepInfo_);
}
+ if (stepInfoCase_ == 20) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 20, (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 21) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 21, (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 22) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 22, (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 23) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 23, (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 24) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 24, (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1907,6 +2346,9 @@ public boolean equals(final java.lang.Object obj) {
case 8:
if (!getEndpoint().equals(other.getEndpoint())) return false;
break;
+ case 24:
+ if (!getGoogleService().equals(other.getGoogleService())) return false;
+ break;
case 9:
if (!getForwardingRule().equals(other.getForwardingRule())) return false;
break;
@@ -1916,6 +2358,9 @@ public boolean equals(final java.lang.Object obj) {
case 11:
if (!getVpnTunnel().equals(other.getVpnTunnel())) return false;
break;
+ case 21:
+ if (!getVpcConnector().equals(other.getVpcConnector())) return false;
+ break;
case 12:
if (!getDeliver().equals(other.getDeliver())) return false;
break;
@@ -1940,6 +2385,15 @@ public boolean equals(final java.lang.Object obj) {
case 19:
if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false;
break;
+ case 20:
+ if (!getCloudFunction().equals(other.getCloudFunction())) return false;
+ break;
+ case 22:
+ if (!getAppEngineVersion().equals(other.getAppEngineVersion())) return false;
+ break;
+ case 23:
+ if (!getCloudRunRevision().equals(other.getCloudRunRevision())) return false;
+ break;
case 0:
default:
}
@@ -1979,6 +2433,10 @@ public int hashCode() {
hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getEndpoint().hashCode();
break;
+ case 24:
+ hash = (37 * hash) + GOOGLE_SERVICE_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogleService().hashCode();
+ break;
case 9:
hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER;
hash = (53 * hash) + getForwardingRule().hashCode();
@@ -1991,6 +2449,10 @@ public int hashCode() {
hash = (37 * hash) + VPN_TUNNEL_FIELD_NUMBER;
hash = (53 * hash) + getVpnTunnel().hashCode();
break;
+ case 21:
+ hash = (37 * hash) + VPC_CONNECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getVpcConnector().hashCode();
+ break;
case 12:
hash = (37 * hash) + DELIVER_FIELD_NUMBER;
hash = (53 * hash) + getDeliver().hashCode();
@@ -2023,6 +2485,18 @@ public int hashCode() {
hash = (37 * hash) + CLOUD_SQL_INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getCloudSqlInstance().hashCode();
break;
+ case 20:
+ hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudFunction().hashCode();
+ break;
+ case 22:
+ hash = (37 * hash) + APP_ENGINE_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getAppEngineVersion().hashCode();
+ break;
+ case 23:
+ hash = (37 * hash) + CLOUD_RUN_REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudRunRevision().hashCode();
+ break;
case 0:
default:
}
@@ -2182,6 +2656,9 @@ public Builder clear() {
if (endpointBuilder_ != null) {
endpointBuilder_.clear();
}
+ if (googleServiceBuilder_ != null) {
+ googleServiceBuilder_.clear();
+ }
if (forwardingRuleBuilder_ != null) {
forwardingRuleBuilder_.clear();
}
@@ -2191,6 +2668,9 @@ public Builder clear() {
if (vpnTunnelBuilder_ != null) {
vpnTunnelBuilder_.clear();
}
+ if (vpcConnectorBuilder_ != null) {
+ vpcConnectorBuilder_.clear();
+ }
if (deliverBuilder_ != null) {
deliverBuilder_.clear();
}
@@ -2215,6 +2695,15 @@ public Builder clear() {
if (cloudSqlInstanceBuilder_ != null) {
cloudSqlInstanceBuilder_.clear();
}
+ if (cloudFunctionBuilder_ != null) {
+ cloudFunctionBuilder_.clear();
+ }
+ if (appEngineVersionBuilder_ != null) {
+ appEngineVersionBuilder_.clear();
+ }
+ if (cloudRunRevisionBuilder_ != null) {
+ cloudRunRevisionBuilder_.clear();
+ }
stepInfoCase_ = 0;
stepInfo_ = null;
return this;
@@ -2283,6 +2772,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul
if (stepInfoCase_ == 8 && endpointBuilder_ != null) {
result.stepInfo_ = endpointBuilder_.build();
}
+ if (stepInfoCase_ == 24 && googleServiceBuilder_ != null) {
+ result.stepInfo_ = googleServiceBuilder_.build();
+ }
if (stepInfoCase_ == 9 && forwardingRuleBuilder_ != null) {
result.stepInfo_ = forwardingRuleBuilder_.build();
}
@@ -2292,6 +2784,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul
if (stepInfoCase_ == 11 && vpnTunnelBuilder_ != null) {
result.stepInfo_ = vpnTunnelBuilder_.build();
}
+ if (stepInfoCase_ == 21 && vpcConnectorBuilder_ != null) {
+ result.stepInfo_ = vpcConnectorBuilder_.build();
+ }
if (stepInfoCase_ == 12 && deliverBuilder_ != null) {
result.stepInfo_ = deliverBuilder_.build();
}
@@ -2316,6 +2811,15 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul
if (stepInfoCase_ == 19 && cloudSqlInstanceBuilder_ != null) {
result.stepInfo_ = cloudSqlInstanceBuilder_.build();
}
+ if (stepInfoCase_ == 20 && cloudFunctionBuilder_ != null) {
+ result.stepInfo_ = cloudFunctionBuilder_.build();
+ }
+ if (stepInfoCase_ == 22 && appEngineVersionBuilder_ != null) {
+ result.stepInfo_ = appEngineVersionBuilder_.build();
+ }
+ if (stepInfoCase_ == 23 && cloudRunRevisionBuilder_ != null) {
+ result.stepInfo_ = cloudRunRevisionBuilder_.build();
+ }
}
@java.lang.Override
@@ -2400,6 +2904,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) {
mergeEndpoint(other.getEndpoint());
break;
}
+ case GOOGLE_SERVICE:
+ {
+ mergeGoogleService(other.getGoogleService());
+ break;
+ }
case FORWARDING_RULE:
{
mergeForwardingRule(other.getForwardingRule());
@@ -2415,6 +2924,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) {
mergeVpnTunnel(other.getVpnTunnel());
break;
}
+ case VPC_CONNECTOR:
+ {
+ mergeVpcConnector(other.getVpcConnector());
+ break;
+ }
case DELIVER:
{
mergeDeliver(other.getDeliver());
@@ -2455,6 +2969,21 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) {
mergeCloudSqlInstance(other.getCloudSqlInstance());
break;
}
+ case CLOUD_FUNCTION:
+ {
+ mergeCloudFunction(other.getCloudFunction());
+ break;
+ }
+ case APP_ENGINE_VERSION:
+ {
+ mergeAppEngineVersion(other.getAppEngineVersion());
+ break;
+ }
+ case CLOUD_RUN_REVISION:
+ {
+ mergeCloudRunRevision(other.getCloudRunRevision());
+ break;
+ }
case STEPINFO_NOT_SET:
{
break;
@@ -2601,6 +3130,38 @@ public Builder mergeFrom(
stepInfoCase_ = 19;
break;
} // case 154
+ case 162:
+ {
+ input.readMessage(getCloudFunctionFieldBuilder().getBuilder(), extensionRegistry);
+ stepInfoCase_ = 20;
+ break;
+ } // case 162
+ case 170:
+ {
+ input.readMessage(getVpcConnectorFieldBuilder().getBuilder(), extensionRegistry);
+ stepInfoCase_ = 21;
+ break;
+ } // case 170
+ case 178:
+ {
+ input.readMessage(
+ getAppEngineVersionFieldBuilder().getBuilder(), extensionRegistry);
+ stepInfoCase_ = 22;
+ break;
+ } // case 178
+ case 186:
+ {
+ input.readMessage(
+ getCloudRunRevisionFieldBuilder().getBuilder(), extensionRegistry);
+ stepInfoCase_ = 23;
+ break;
+ } // case 186
+ case 194:
+ {
+ input.readMessage(getGoogleServiceFieldBuilder().getBuilder(), extensionRegistry);
+ stepInfoCase_ = 24;
+ break;
+ } // case 194
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3857,6 +4418,219 @@ public com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointOr
return endpointBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo,
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.Builder,
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfoOrBuilder>
+ googleServiceBuilder_;
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ *
+ * @return Whether the googleService field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogleService() {
+ return stepInfoCase_ == 24;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ *
+ * @return The googleService.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.GoogleServiceInfo getGoogleService() {
+ if (googleServiceBuilder_ == null) {
+ if (stepInfoCase_ == 24) {
+ return (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.GoogleServiceInfo.getDefaultInstance();
+ } else {
+ if (stepInfoCase_ == 24) {
+ return googleServiceBuilder_.getMessage();
+ }
+ return com.google.cloud.networkmanagement.v1.GoogleServiceInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ public Builder setGoogleService(com.google.cloud.networkmanagement.v1.GoogleServiceInfo value) {
+ if (googleServiceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stepInfo_ = value;
+ onChanged();
+ } else {
+ googleServiceBuilder_.setMessage(value);
+ }
+ stepInfoCase_ = 24;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ public Builder setGoogleService(
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.Builder builderForValue) {
+ if (googleServiceBuilder_ == null) {
+ stepInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ googleServiceBuilder_.setMessage(builderForValue.build());
+ }
+ stepInfoCase_ = 24;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ public Builder mergeGoogleService(
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo value) {
+ if (googleServiceBuilder_ == null) {
+ if (stepInfoCase_ == 24
+ && stepInfo_
+ != com.google.cloud.networkmanagement.v1.GoogleServiceInfo.getDefaultInstance()) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ stepInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (stepInfoCase_ == 24) {
+ googleServiceBuilder_.mergeFrom(value);
+ } else {
+ googleServiceBuilder_.setMessage(value);
+ }
+ }
+ stepInfoCase_ = 24;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ public Builder clearGoogleService() {
+ if (googleServiceBuilder_ == null) {
+ if (stepInfoCase_ == 24) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (stepInfoCase_ == 24) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ }
+ googleServiceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ public com.google.cloud.networkmanagement.v1.GoogleServiceInfo.Builder
+ getGoogleServiceBuilder() {
+ return getGoogleServiceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.GoogleServiceInfoOrBuilder
+ getGoogleServiceOrBuilder() {
+ if ((stepInfoCase_ == 24) && (googleServiceBuilder_ != null)) {
+ return googleServiceBuilder_.getMessageOrBuilder();
+ } else {
+ if (stepInfoCase_ == 24) {
+ return (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.GoogleServiceInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo,
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.Builder,
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfoOrBuilder>
+ getGoogleServiceFieldBuilder() {
+ if (googleServiceBuilder_ == null) {
+ if (!(stepInfoCase_ == 24)) {
+ stepInfo_ = com.google.cloud.networkmanagement.v1.GoogleServiceInfo.getDefaultInstance();
+ }
+ googleServiceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo,
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo.Builder,
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_,
+ getParentForChildren(),
+ isClean());
+ stepInfo_ = null;
+ }
+ stepInfoCase_ = 24;
+ onChanged();
+ return googleServiceBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.networkmanagement.v1.ForwardingRuleInfo,
com.google.cloud.networkmanagement.v1.ForwardingRuleInfo.Builder,
@@ -4492,109 +5266,109 @@ public com.google.cloud.networkmanagement.v1.VpnTunnelInfoOrBuilder getVpnTunnel
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.networkmanagement.v1.DeliverInfo,
- com.google.cloud.networkmanagement.v1.DeliverInfo.Builder,
- com.google.cloud.networkmanagement.v1.DeliverInfoOrBuilder>
- deliverBuilder_;
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo,
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo.Builder,
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfoOrBuilder>
+ vpcConnectorBuilder_;
/**
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*
- * @return Whether the deliver field is set.
+ * @return Whether the vpcConnector field is set.
*/
@java.lang.Override
- public boolean hasDeliver() {
- return stepInfoCase_ == 12;
+ public boolean hasVpcConnector() {
+ return stepInfoCase_ == 21;
}
/**
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*
- * @return The deliver.
+ * @return The vpcConnector.
*/
@java.lang.Override
- public com.google.cloud.networkmanagement.v1.DeliverInfo getDeliver() {
- if (deliverBuilder_ == null) {
- if (stepInfoCase_ == 12) {
- return (com.google.cloud.networkmanagement.v1.DeliverInfo) stepInfo_;
+ public com.google.cloud.networkmanagement.v1.VpcConnectorInfo getVpcConnector() {
+ if (vpcConnectorBuilder_ == null) {
+ if (stepInfoCase_ == 21) {
+ return (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) stepInfo_;
}
- return com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
+ return com.google.cloud.networkmanagement.v1.VpcConnectorInfo.getDefaultInstance();
} else {
- if (stepInfoCase_ == 12) {
- return deliverBuilder_.getMessage();
+ if (stepInfoCase_ == 21) {
+ return vpcConnectorBuilder_.getMessage();
}
- return com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
+ return com.google.cloud.networkmanagement.v1.VpcConnectorInfo.getDefaultInstance();
}
}
/**
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*/
- public Builder setDeliver(com.google.cloud.networkmanagement.v1.DeliverInfo value) {
- if (deliverBuilder_ == null) {
+ public Builder setVpcConnector(com.google.cloud.networkmanagement.v1.VpcConnectorInfo value) {
+ if (vpcConnectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stepInfo_ = value;
onChanged();
} else {
- deliverBuilder_.setMessage(value);
+ vpcConnectorBuilder_.setMessage(value);
}
- stepInfoCase_ = 12;
+ stepInfoCase_ = 21;
return this;
}
/**
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*/
- public Builder setDeliver(
- com.google.cloud.networkmanagement.v1.DeliverInfo.Builder builderForValue) {
- if (deliverBuilder_ == null) {
+ public Builder setVpcConnector(
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo.Builder builderForValue) {
+ if (vpcConnectorBuilder_ == null) {
stepInfo_ = builderForValue.build();
onChanged();
} else {
- deliverBuilder_.setMessage(builderForValue.build());
+ vpcConnectorBuilder_.setMessage(builderForValue.build());
}
- stepInfoCase_ = 12;
+ stepInfoCase_ = 21;
return this;
}
/**
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*/
- public Builder mergeDeliver(com.google.cloud.networkmanagement.v1.DeliverInfo value) {
- if (deliverBuilder_ == null) {
- if (stepInfoCase_ == 12
+ public Builder mergeVpcConnector(com.google.cloud.networkmanagement.v1.VpcConnectorInfo value) {
+ if (vpcConnectorBuilder_ == null) {
+ if (stepInfoCase_ == 21
&& stepInfo_
- != com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance()) {
+ != com.google.cloud.networkmanagement.v1.VpcConnectorInfo.getDefaultInstance()) {
stepInfo_ =
- com.google.cloud.networkmanagement.v1.DeliverInfo.newBuilder(
- (com.google.cloud.networkmanagement.v1.DeliverInfo) stepInfo_)
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) stepInfo_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -4602,37 +5376,37 @@ public Builder mergeDeliver(com.google.cloud.networkmanagement.v1.DeliverInfo va
}
onChanged();
} else {
- if (stepInfoCase_ == 12) {
- deliverBuilder_.mergeFrom(value);
+ if (stepInfoCase_ == 21) {
+ vpcConnectorBuilder_.mergeFrom(value);
} else {
- deliverBuilder_.setMessage(value);
+ vpcConnectorBuilder_.setMessage(value);
}
}
- stepInfoCase_ = 12;
+ stepInfoCase_ = 21;
return this;
}
/**
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*/
- public Builder clearDeliver() {
- if (deliverBuilder_ == null) {
- if (stepInfoCase_ == 12) {
+ public Builder clearVpcConnector() {
+ if (vpcConnectorBuilder_ == null) {
+ if (stepInfoCase_ == 21) {
stepInfoCase_ = 0;
stepInfo_ = null;
onChanged();
}
} else {
- if (stepInfoCase_ == 12) {
+ if (stepInfoCase_ == 21) {
stepInfoCase_ = 0;
stepInfo_ = null;
}
- deliverBuilder_.clear();
+ vpcConnectorBuilder_.clear();
}
return this;
}
@@ -4640,65 +5414,276 @@ public Builder clearDeliver() {
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*/
- public com.google.cloud.networkmanagement.v1.DeliverInfo.Builder getDeliverBuilder() {
- return getDeliverFieldBuilder().getBuilder();
+ public com.google.cloud.networkmanagement.v1.VpcConnectorInfo.Builder getVpcConnectorBuilder() {
+ return getVpcConnectorFieldBuilder().getBuilder();
}
/**
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*/
@java.lang.Override
- public com.google.cloud.networkmanagement.v1.DeliverInfoOrBuilder getDeliverOrBuilder() {
- if ((stepInfoCase_ == 12) && (deliverBuilder_ != null)) {
- return deliverBuilder_.getMessageOrBuilder();
+ public com.google.cloud.networkmanagement.v1.VpcConnectorInfoOrBuilder
+ getVpcConnectorOrBuilder() {
+ if ((stepInfoCase_ == 21) && (vpcConnectorBuilder_ != null)) {
+ return vpcConnectorBuilder_.getMessageOrBuilder();
} else {
- if (stepInfoCase_ == 12) {
- return (com.google.cloud.networkmanagement.v1.DeliverInfo) stepInfo_;
+ if (stepInfoCase_ == 21) {
+ return (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) stepInfo_;
}
- return com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
+ return com.google.cloud.networkmanagement.v1.VpcConnectorInfo.getDefaultInstance();
}
}
/**
*
*
* - * Display information of the final state "deliver" and reason. + * Display information of a VPC connector. ** - *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ * .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.networkmanagement.v1.DeliverInfo,
- com.google.cloud.networkmanagement.v1.DeliverInfo.Builder,
- com.google.cloud.networkmanagement.v1.DeliverInfoOrBuilder>
- getDeliverFieldBuilder() {
- if (deliverBuilder_ == null) {
- if (!(stepInfoCase_ == 12)) {
- stepInfo_ = com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
- }
- deliverBuilder_ =
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo,
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo.Builder,
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfoOrBuilder>
+ getVpcConnectorFieldBuilder() {
+ if (vpcConnectorBuilder_ == null) {
+ if (!(stepInfoCase_ == 21)) {
+ stepInfo_ = com.google.cloud.networkmanagement.v1.VpcConnectorInfo.getDefaultInstance();
+ }
+ vpcConnectorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.networkmanagement.v1.DeliverInfo,
- com.google.cloud.networkmanagement.v1.DeliverInfo.Builder,
- com.google.cloud.networkmanagement.v1.DeliverInfoOrBuilder>(
- (com.google.cloud.networkmanagement.v1.DeliverInfo) stepInfo_,
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo,
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo.Builder,
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) stepInfo_,
getParentForChildren(),
isClean());
stepInfo_ = null;
}
- stepInfoCase_ = 12;
+ stepInfoCase_ = 21;
onChanged();
- return deliverBuilder_;
+ return vpcConnectorBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.DeliverInfo,
+ com.google.cloud.networkmanagement.v1.DeliverInfo.Builder,
+ com.google.cloud.networkmanagement.v1.DeliverInfoOrBuilder>
+ deliverBuilder_;
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ *
+ * @return Whether the deliver field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeliver() {
+ return stepInfoCase_ == 12;
+ }
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ *
+ * @return The deliver.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.DeliverInfo getDeliver() {
+ if (deliverBuilder_ == null) {
+ if (stepInfoCase_ == 12) {
+ return (com.google.cloud.networkmanagement.v1.DeliverInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
+ } else {
+ if (stepInfoCase_ == 12) {
+ return deliverBuilder_.getMessage();
+ }
+ return com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ */
+ public Builder setDeliver(com.google.cloud.networkmanagement.v1.DeliverInfo value) {
+ if (deliverBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stepInfo_ = value;
+ onChanged();
+ } else {
+ deliverBuilder_.setMessage(value);
+ }
+ stepInfoCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ */
+ public Builder setDeliver(
+ com.google.cloud.networkmanagement.v1.DeliverInfo.Builder builderForValue) {
+ if (deliverBuilder_ == null) {
+ stepInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ deliverBuilder_.setMessage(builderForValue.build());
+ }
+ stepInfoCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ */
+ public Builder mergeDeliver(com.google.cloud.networkmanagement.v1.DeliverInfo value) {
+ if (deliverBuilder_ == null) {
+ if (stepInfoCase_ == 12
+ && stepInfo_
+ != com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance()) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1.DeliverInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1.DeliverInfo) stepInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ stepInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (stepInfoCase_ == 12) {
+ deliverBuilder_.mergeFrom(value);
+ } else {
+ deliverBuilder_.setMessage(value);
+ }
+ }
+ stepInfoCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ */
+ public Builder clearDeliver() {
+ if (deliverBuilder_ == null) {
+ if (stepInfoCase_ == 12) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (stepInfoCase_ == 12) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ }
+ deliverBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ */
+ public com.google.cloud.networkmanagement.v1.DeliverInfo.Builder getDeliverBuilder() {
+ return getDeliverFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.DeliverInfoOrBuilder getDeliverOrBuilder() {
+ if ((stepInfoCase_ == 12) && (deliverBuilder_ != null)) {
+ return deliverBuilder_.getMessageOrBuilder();
+ } else {
+ if (stepInfoCase_ == 12) {
+ return (com.google.cloud.networkmanagement.v1.DeliverInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of the final state "deliver" and reason. + *+ * + *
.google.cloud.networkmanagement.v1.DeliverInfo deliver = 12;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.DeliverInfo,
+ com.google.cloud.networkmanagement.v1.DeliverInfo.Builder,
+ com.google.cloud.networkmanagement.v1.DeliverInfoOrBuilder>
+ getDeliverFieldBuilder() {
+ if (deliverBuilder_ == null) {
+ if (!(stepInfoCase_ == 12)) {
+ stepInfo_ = com.google.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
+ }
+ deliverBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.DeliverInfo,
+ com.google.cloud.networkmanagement.v1.DeliverInfo.Builder,
+ com.google.cloud.networkmanagement.v1.DeliverInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1.DeliverInfo) stepInfo_,
+ getParentForChildren(),
+ isClean());
+ stepInfo_ = null;
+ }
+ stepInfoCase_ = 12;
+ onChanged();
+ return deliverBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
@@ -6175,6 +7160,651 @@ public Builder clearCloudSqlInstance() {
return cloudSqlInstanceBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo,
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder>
+ cloudFunctionBuilder_;
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ *
+ * @return Whether the cloudFunction field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudFunction() {
+ return stepInfoCase_ == 20;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ *
+ * @return The cloudFunction.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.CloudFunctionInfo getCloudFunction() {
+ if (cloudFunctionBuilder_ == null) {
+ if (stepInfoCase_ == 20) {
+ return (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance();
+ } else {
+ if (stepInfoCase_ == 20) {
+ return cloudFunctionBuilder_.getMessage();
+ }
+ return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ public Builder setCloudFunction(com.google.cloud.networkmanagement.v1.CloudFunctionInfo value) {
+ if (cloudFunctionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stepInfo_ = value;
+ onChanged();
+ } else {
+ cloudFunctionBuilder_.setMessage(value);
+ }
+ stepInfoCase_ = 20;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ public Builder setCloudFunction(
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder builderForValue) {
+ if (cloudFunctionBuilder_ == null) {
+ stepInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ cloudFunctionBuilder_.setMessage(builderForValue.build());
+ }
+ stepInfoCase_ = 20;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ public Builder mergeCloudFunction(
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo value) {
+ if (cloudFunctionBuilder_ == null) {
+ if (stepInfoCase_ == 20
+ && stepInfo_
+ != com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance()) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ stepInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (stepInfoCase_ == 20) {
+ cloudFunctionBuilder_.mergeFrom(value);
+ } else {
+ cloudFunctionBuilder_.setMessage(value);
+ }
+ }
+ stepInfoCase_ = 20;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ public Builder clearCloudFunction() {
+ if (cloudFunctionBuilder_ == null) {
+ if (stepInfoCase_ == 20) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (stepInfoCase_ == 20) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ }
+ cloudFunctionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ public com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder
+ getCloudFunctionBuilder() {
+ return getCloudFunctionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder
+ getCloudFunctionOrBuilder() {
+ if ((stepInfoCase_ == 20) && (cloudFunctionBuilder_ != null)) {
+ return cloudFunctionBuilder_.getMessageOrBuilder();
+ } else {
+ if (stepInfoCase_ == 20) {
+ return (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo,
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder>
+ getCloudFunctionFieldBuilder() {
+ if (cloudFunctionBuilder_ == null) {
+ if (!(stepInfoCase_ == 20)) {
+ stepInfo_ = com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance();
+ }
+ cloudFunctionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo,
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_,
+ getParentForChildren(),
+ isClean());
+ stepInfo_ = null;
+ }
+ stepInfoCase_ = 20;
+ onChanged();
+ return cloudFunctionBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo,
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfoOrBuilder>
+ appEngineVersionBuilder_;
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasAppEngineVersion() {
+ return stepInfoCase_ == 22;
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ * @return The appEngineVersion.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.AppEngineVersionInfo getAppEngineVersion() {
+ if (appEngineVersionBuilder_ == null) {
+ if (stepInfoCase_ == 22) {
+ return (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.getDefaultInstance();
+ } else {
+ if (stepInfoCase_ == 22) {
+ return appEngineVersionBuilder_.getMessage();
+ }
+ return com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ public Builder setAppEngineVersion(
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stepInfo_ = value;
+ onChanged();
+ } else {
+ appEngineVersionBuilder_.setMessage(value);
+ }
+ stepInfoCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ public Builder setAppEngineVersion(
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.Builder builderForValue) {
+ if (appEngineVersionBuilder_ == null) {
+ stepInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ appEngineVersionBuilder_.setMessage(builderForValue.build());
+ }
+ stepInfoCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ public Builder mergeAppEngineVersion(
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (stepInfoCase_ == 22
+ && stepInfo_
+ != com.google.cloud.networkmanagement.v1.AppEngineVersionInfo
+ .getDefaultInstance()) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) stepInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ stepInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (stepInfoCase_ == 22) {
+ appEngineVersionBuilder_.mergeFrom(value);
+ } else {
+ appEngineVersionBuilder_.setMessage(value);
+ }
+ }
+ stepInfoCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ public Builder clearAppEngineVersion() {
+ if (appEngineVersionBuilder_ == null) {
+ if (stepInfoCase_ == 22) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (stepInfoCase_ == 22) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ }
+ appEngineVersionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ public com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.Builder
+ getAppEngineVersionBuilder() {
+ return getAppEngineVersionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.AppEngineVersionInfoOrBuilder
+ getAppEngineVersionOrBuilder() {
+ if ((stepInfoCase_ == 22) && (appEngineVersionBuilder_ != null)) {
+ return appEngineVersionBuilder_.getMessageOrBuilder();
+ } else {
+ if (stepInfoCase_ == 22) {
+ return (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo,
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfoOrBuilder>
+ getAppEngineVersionFieldBuilder() {
+ if (appEngineVersionBuilder_ == null) {
+ if (!(stepInfoCase_ == 22)) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.getDefaultInstance();
+ }
+ appEngineVersionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo,
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1.AppEngineVersionInfo) stepInfo_,
+ getParentForChildren(),
+ isClean());
+ stepInfo_ = null;
+ }
+ stepInfoCase_ = 22;
+ onChanged();
+ return appEngineVersionBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo,
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfoOrBuilder>
+ cloudRunRevisionBuilder_;
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudRunRevision() {
+ return stepInfoCase_ == 23;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ * @return The cloudRunRevision.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo getCloudRunRevision() {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (stepInfoCase_ == 23) {
+ return (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.getDefaultInstance();
+ } else {
+ if (stepInfoCase_ == 23) {
+ return cloudRunRevisionBuilder_.getMessage();
+ }
+ return com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ public Builder setCloudRunRevision(
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stepInfo_ = value;
+ onChanged();
+ } else {
+ cloudRunRevisionBuilder_.setMessage(value);
+ }
+ stepInfoCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ public Builder setCloudRunRevision(
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.Builder builderForValue) {
+ if (cloudRunRevisionBuilder_ == null) {
+ stepInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ cloudRunRevisionBuilder_.setMessage(builderForValue.build());
+ }
+ stepInfoCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ public Builder mergeCloudRunRevision(
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (stepInfoCase_ == 23
+ && stepInfo_
+ != com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo
+ .getDefaultInstance()) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) stepInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ stepInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (stepInfoCase_ == 23) {
+ cloudRunRevisionBuilder_.mergeFrom(value);
+ } else {
+ cloudRunRevisionBuilder_.setMessage(value);
+ }
+ }
+ stepInfoCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ public Builder clearCloudRunRevision() {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (stepInfoCase_ == 23) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (stepInfoCase_ == 23) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ }
+ cloudRunRevisionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ public com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.Builder
+ getCloudRunRevisionBuilder() {
+ return getCloudRunRevisionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1.CloudRunRevisionInfoOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ if ((stepInfoCase_ == 23) && (cloudRunRevisionBuilder_ != null)) {
+ return cloudRunRevisionBuilder_.getMessageOrBuilder();
+ } else {
+ if (stepInfoCase_ == 23) {
+ return (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo,
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfoOrBuilder>
+ getCloudRunRevisionFieldBuilder() {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (!(stepInfoCase_ == 23)) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+ cloudRunRevisionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo,
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.Builder,
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo) stepInfo_,
+ getParentForChildren(),
+ isClean());
+ stepInfo_ = null;
+ }
+ stepInfoCase_ = 23;
+ onChanged();
+ return cloudRunRevisionBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java
index 27d7121801b6..cedadc3fd8e5 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java
@@ -260,6 +260,41 @@ public interface StepOrBuilder
*/
com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointOrBuilder();
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ *
+ * @return Whether the googleService field is set.
+ */
+ boolean hasGoogleService();
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ *
+ * @return The googleService.
+ */
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfo getGoogleService();
+ /**
+ *
+ *
+ * + * Display information of a Google service + *+ * + *
.google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24;
+ */
+ com.google.cloud.networkmanagement.v1.GoogleServiceInfoOrBuilder getGoogleServiceOrBuilder();
+
/**
*
*
@@ -365,6 +400,41 @@ public interface StepOrBuilder
*/
com.google.cloud.networkmanagement.v1.VpnTunnelInfoOrBuilder getVpnTunnelOrBuilder();
+ /**
+ *
+ *
+ * + * Display information of a VPC connector. + *+ * + *
.google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
+ *
+ * @return Whether the vpcConnector field is set.
+ */
+ boolean hasVpcConnector();
+ /**
+ *
+ *
+ * + * Display information of a VPC connector. + *+ * + *
.google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
+ *
+ * @return The vpcConnector.
+ */
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo getVpcConnector();
+ /**
+ *
+ *
+ * + * Display information of a VPC connector. + *+ * + *
.google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21;
+ */
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfoOrBuilder getVpcConnectorOrBuilder();
+
/**
*
*
@@ -646,5 +716,112 @@ public interface StepOrBuilder
com.google.cloud.networkmanagement.v1.CloudSQLInstanceInfoOrBuilder
getCloudSqlInstanceOrBuilder();
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ *
+ * @return Whether the cloudFunction field is set.
+ */
+ boolean hasCloudFunction();
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ *
+ * @return The cloudFunction.
+ */
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfo getCloudFunction();
+ /**
+ *
+ *
+ * + * Display information of a Cloud Function. + *+ * + *
.google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20;
+ */
+ com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder getCloudFunctionOrBuilder();
+
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ boolean hasAppEngineVersion();
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ * @return The appEngineVersion.
+ */
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfo getAppEngineVersion();
+ /**
+ *
+ *
+ * + * Display information of an App Engine service version. + *+ * + *
.google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22;
+ */
+ com.google.cloud.networkmanagement.v1.AppEngineVersionInfoOrBuilder
+ getAppEngineVersionOrBuilder();
+
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ boolean hasCloudRunRevision();
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ * @return The cloudRunRevision.
+ */
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo getCloudRunRevision();
+ /**
+ *
+ *
+ * + * Display information of a Cloud Run revision. + *+ * + *
.google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23;
+ */
+ com.google.cloud.networkmanagement.v1.CloudRunRevisionInfoOrBuilder
+ getCloudRunRevisionOrBuilder();
+
com.google.cloud.networkmanagement.v1.Step.StepInfoCase getStepInfoCase();
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java
index a12a9b3b610b..08e98d90b2ae 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java
@@ -39,10 +39,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_networkmanagement_v1_Endpoint_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_networkmanagement_v1_Endpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_networkmanagement_v1_ReachabilityDetails_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_networkmanagement_v1_ReachabilityDetails_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1_LatencyPercentile_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1_LatencyPercentile_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1_LatencyDistribution_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1_LatencyDistribution_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1_ProbingDetails_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1_ProbingDetails_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1_ProbingDetails_EdgeLocation_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1_ProbingDetails_EdgeLocation_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -58,7 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "r.proto\032\031google/api/resource.proto\032-goog"
+ "le/cloud/networkmanagement/v1/trace.prot"
+ "o\032\037google/protobuf/timestamp.proto\032\027goog"
- + "le/rpc/status.proto\"\316\005\n\020ConnectivityTest"
+ + "le/rpc/status.proto\"\240\006\n\020ConnectivityTest"
+ "\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\023\n\013description\030\002 \001("
+ "\t\022A\n\006source\030\003 \001(\0132+.google.cloud.network"
+ "management.v1.EndpointB\004\342A\001\002\022F\n\013destinat"
@@ -72,35 +100,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ime\030\013 \001(\0132\032.google.protobuf.TimestampB\004\342"
+ "A\001\003\022Z\n\024reachability_details\030\014 \001(\01326.goog"
+ "le.cloud.networkmanagement.v1.Reachabili"
- + "tyDetailsB\004\342A\001\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 "
- + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n1networkmana"
- + "gement.googleapis.com/ConnectivityTest\022<"
- + "projects/{project}/locations/global/conn"
- + "ectivityTests/{test}\"\326\002\n\010Endpoint\022\022\n\nip_"
- + "address\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\022\020\n\010instance\030"
- + "\003 \001(\t\022\027\n\017forwarding_rule\030\r \001(\t\022\032\n\022gke_ma"
+ + "tyDetailsB\004\342A\001\003\022P\n\017probing_details\030\016 \001(\013"
+ + "21.google.cloud.networkmanagement.v1.Pro"
+ + "bingDetailsB\004\342A\001\003\032-\n\013LabelsEntry\022\013\n\003key\030"
+ + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n1networkma"
+ + "nagement.googleapis.com/ConnectivityTest"
+ + "\022+ * For display only. Metadata associated with a VPC connector. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.VpcConnectorInfo} + */ +public final class VpcConnectorInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.VpcConnectorInfo) + VpcConnectorInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use VpcConnectorInfo.newBuilder() to construct. + private VpcConnectorInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private VpcConnectorInfo() { + displayName_ = ""; + uri_ = ""; + location_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VpcConnectorInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.VpcConnectorInfo.class, + com.google.cloud.networkmanagement.v1.VpcConnectorInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+ * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @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 URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOCATION_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object location_ = "";
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @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;
+ }
+ }
+
+ 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.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, location_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, location_);
+ }
+ 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.networkmanagement.v1.VpcConnectorInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1.VpcConnectorInfo other =
+ (com.google.cloud.networkmanagement.v1.VpcConnectorInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getLocation().equals(other.getLocation())) 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) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getLocation().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo 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.networkmanagement.v1.VpcConnectorInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo 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.networkmanagement.v1.VpcConnectorInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.VpcConnectorInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * For display only. Metadata associated with a VPC connector. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.VpcConnectorInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object location_ = "";
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLocation() {
+ location_ = getDefaultInstance().getLocation();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.VpcConnectorInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.VpcConnectorInfo)
+ private static final com.google.cloud.networkmanagement.v1.VpcConnectorInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.VpcConnectorInfo();
+ }
+
+ public static com.google.cloud.networkmanagement.v1.VpcConnectorInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ * + * Name of a VPC connector. + *+ * + *
string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * URI of a VPC connector. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @return The location.
+ */
+ java.lang.String getLocation();
+ /**
+ *
+ *
+ * + * Location in which the VPC connector is deployed. + *+ * + *
string location = 3;
+ *
+ * @return The bytes for location.
+ */
+ com.google.protobuf.ByteString getLocationBytes();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto
index fc4a7d32b789..7bbdef65d389 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@ message ConnectivityTest {
};
// Required. Unique name of the resource using the form:
- // `projects/{project_id}/locations/global/connectivityTests/{test_id}`
+ // `projects/{project_id}/locations/global/connectivityTests/{test}`
string name = 1 [(google.api.field_behavior) = REQUIRED];
// The user-supplied description of the Connectivity Test.
@@ -115,6 +115,13 @@ message ConnectivityTest {
// existing test, or triggering a one-time rerun of an existing test.
ReachabilityDetails reachability_details = 12
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The probing details of this test from the latest run, present
+ // for applicable tests only. The details are updated when creating a new
+ // test, updating an existing test, or triggering a one-time rerun of an
+ // existing test.
+ ProbingDetails probing_details = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Source or destination of the Connectivity Test.
@@ -136,9 +143,52 @@ message Endpoint {
NON_GCP_NETWORK = 2;
}
+ // Type of the target of a forwarding rule.
+ enum ForwardingRuleTarget {
+ // Forwarding rule target is unknown.
+ FORWARDING_RULE_TARGET_UNSPECIFIED = 0;
+
+ // Compute Engine instance for protocol forwarding.
+ INSTANCE = 1;
+
+ // Load Balancer. The specific type can be found from [load_balancer_type]
+ // [google.cloud.networkmanagement.v1.Endpoint.load_balancer_type].
+ LOAD_BALANCER = 2;
+
+ // Classic Cloud VPN Gateway.
+ VPN_GATEWAY = 3;
+
+ // Forwarding Rule is a Private Service Connect endpoint.
+ PSC = 4;
+ }
+
+ // Wrapper for Cloud Function attributes.
+ message CloudFunctionEndpoint {
+ // A [Cloud Function](https://cloud.google.com/functions) name.
+ string uri = 1;
+ }
+
+ // Wrapper for the App Engine service version attributes.
+ message AppEngineVersionEndpoint {
+ // An [App Engine](https://cloud.google.com/appengine) [service
+ // version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions)
+ // name.
+ string uri = 1;
+ }
+
+ // Wrapper for Cloud Run revision attributes.
+ message CloudRunRevisionEndpoint {
+ // A [Cloud Run](https://cloud.google.com/run)
+ // [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ // URI. The format is:
+ // projects/{project}/locations/{location}/revisions/{revision}
+ string uri = 1;
+ }
+
// The IP address of the endpoint, which can be an external or internal IP.
// An IPv6 address is only allowed when the test's destination is a
- // [global load balancer VIP](/load-balancing/docs/load-balancing-overview).
+ // [global load balancer
+ // VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview).
string ip_address = 1;
// The IP protocol port of the endpoint.
@@ -156,6 +206,19 @@ message Endpoint {
// projects/{project}/regions/{region}/forwardingRules/{id}
string forwarding_rule = 13;
+ // Output only. Specifies the type of the target of the forwarding rule.
+ optional ForwardingRuleTarget forwarding_rule_target = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. ID of the load balancer the forwarding rule points to. Empty
+ // for forwarding rules not related to load balancers.
+ optional string load_balancer_id = 15
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Type of the load balancer the forwarding rule points to.
+ optional LoadBalancerType load_balancer_type = 16
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
// A cluster URI for [Google Kubernetes Engine
// master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
string gke_master_cluster = 7;
@@ -163,6 +226,17 @@ message Endpoint {
// A [Cloud SQL](https://cloud.google.com/sql) instance URI.
string cloud_sql_instance = 8;
+ // A [Cloud Function](https://cloud.google.com/functions).
+ CloudFunctionEndpoint cloud_function = 10;
+
+ // An [App Engine](https://cloud.google.com/appengine) [service
+ // version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
+ AppEngineVersionEndpoint app_engine_version = 11;
+
+ // A [Cloud Run](https://cloud.google.com/run)
+ // [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ CloudRunRevisionEndpoint cloud_run_revision = 12;
+
// A Compute Engine network URI.
string network = 4;
@@ -233,3 +307,99 @@ message ReachabilityDetails {
// with multiple backends.
repeated Trace traces = 5;
}
+
+// Latency percentile rank and value.
+message LatencyPercentile {
+ // Percentage of samples this data point applies to.
+ int32 percent = 1;
+
+ // percent-th percentile of latency observed, in microseconds.
+ // Fraction of percent/100 of samples have latency lower or
+ // equal to the value of this field.
+ int64 latency_micros = 2;
+}
+
+// Describes measured latency distribution.
+message LatencyDistribution {
+ // Representative latency percentiles.
+ repeated LatencyPercentile latency_percentiles = 1;
+}
+
+// Results of active probing from the last run of the test.
+message ProbingDetails {
+ // Overall probing result of the test.
+ enum ProbingResult {
+ // No result was specified.
+ PROBING_RESULT_UNSPECIFIED = 0;
+
+ // At least 95% of packets reached the destination.
+ REACHABLE = 1;
+
+ // No packets reached the destination.
+ UNREACHABLE = 2;
+
+ // Less than 95% of packets reached the destination.
+ REACHABILITY_INCONSISTENT = 3;
+
+ // Reachability could not be determined. Possible reasons are:
+ // * The user lacks permission to access some of the network resources
+ // required to run the test.
+ // * No valid source endpoint could be derived from the request.
+ // * An internal error occurred.
+ UNDETERMINED = 4;
+ }
+
+ // Abort cause types.
+ enum ProbingAbortCause {
+ // No reason was specified.
+ PROBING_ABORT_CAUSE_UNSPECIFIED = 0;
+
+ // The user lacks permission to access some of the
+ // network resources required to run the test.
+ PERMISSION_DENIED = 1;
+
+ // No valid source endpoint could be derived from the request.
+ NO_SOURCE_LOCATION = 2;
+ }
+
+ // Representation of a network edge location as per
+ // https://cloud.google.com/vpc/docs/edge-locations.
+ message EdgeLocation {
+ // Name of the metropolitan area.
+ string metropolitan_area = 1;
+ }
+
+ // The overall result of active probing.
+ ProbingResult result = 1;
+
+ // The time that reachability was assessed through active probing.
+ google.protobuf.Timestamp verify_time = 2;
+
+ // Details about an internal failure or the cancellation of active probing.
+ google.rpc.Status error = 3;
+
+ // The reason probing was aborted.
+ ProbingAbortCause abort_cause = 4;
+
+ // Number of probes sent.
+ int32 sent_probe_count = 5;
+
+ // Number of probes that reached the destination.
+ int32 successful_probe_count = 6;
+
+ // The source and destination endpoints derived from the test input and used
+ // for active probing.
+ EndpointInfo endpoint_info = 7;
+
+ // Latency as measured by active probing in one direction:
+ // from the source to the destination endpoint.
+ LatencyDistribution probing_latency = 8;
+
+ // The EdgeLocation from which a packet destined for/originating from the
+ // internet will egress/ingress the Google network.
+ // This will only be populated for a connectivity test which has an internet
+ // destination/source address.
+ // The absence of this field *must not* be used as an indication that the
+ // destination/source is part of the Google network.
+ EdgeLocation destination_egress_location = 9;
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto
index 945b1baf4df6..3316f6f097e9 100644
--- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto
+++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -68,6 +68,12 @@ message Step {
// The endpoint information is populated.
START_FROM_INTERNET = 2;
+ // Initial state: packet originating from a Google service. Some Google
+ // services, such as health check probers or Identity Aware Proxy use
+ // special routes, outside VPC routing configuration to reach Compute Engine
+ // Instances.
+ START_FROM_GOOGLE_SERVICE = 27;
+
// Initial state: packet originating from a VPC or on-premises network
// with internal source IP.
// If the source is a VPC network visible to the user, a NetworkInfo
@@ -82,6 +88,18 @@ message Step {
// A CloudSQLInstanceInfo is populated with starting instance information.
START_FROM_CLOUD_SQL_INSTANCE = 22;
+ // Initial state: packet originating from a Cloud Function.
+ // A CloudFunctionInfo is populated with starting function information.
+ START_FROM_CLOUD_FUNCTION = 23;
+
+ // Initial state: packet originating from an App Engine service version.
+ // An AppEngineVersionInfo is populated with starting version information.
+ START_FROM_APP_ENGINE_VERSION = 25;
+
+ // Initial state: packet originating from a Cloud Run revision.
+ // A CloudRunRevisionInfo is populated with starting revision information.
+ START_FROM_CLOUD_RUN_REVISION = 26;
+
// Config checking state: verify ingress firewall rule.
APPLY_INGRESS_FIREWALL_RULE = 4;
@@ -113,6 +131,9 @@ message Step {
// Forwarding state: arriving at a Cloud VPN tunnel.
ARRIVE_AT_VPN_TUNNEL = 13;
+ // Forwarding state: arriving at a VPC connector.
+ ARRIVE_AT_VPC_CONNECTOR = 24;
+
// Transition state: packet header translated.
NAT = 14;
@@ -171,6 +192,9 @@ message Step {
// or Connection Proxy.
EndpointInfo endpoint = 8;
+ // Display information of a Google service
+ GoogleServiceInfo google_service = 24;
+
// Display information of a Compute Engine forwarding rule.
ForwardingRuleInfo forwarding_rule = 9;
@@ -180,6 +204,9 @@ message Step {
// Display information of a Compute Engine VPN tunnel.
VpnTunnelInfo vpn_tunnel = 11;
+ // Display information of a VPC connector.
+ VpcConnectorInfo vpc_connector = 21;
+
// Display information of the final state "deliver" and reason.
DeliverInfo deliver = 12;
@@ -203,6 +230,15 @@ message Step {
// Display information of a Cloud SQL instance.
CloudSQLInstanceInfo cloud_sql_instance = 19;
+
+ // Display information of a Cloud Function.
+ CloudFunctionInfo cloud_function = 20;
+
+ // Display information of an App Engine service version.
+ AppEngineVersionInfo app_engine_version = 22;
+
+ // Display information of a Cloud Run revision.
+ CloudRunRevisionInfo cloud_run_revision = 23;
}
}
@@ -267,6 +303,22 @@ message FirewallInfo {
// [Implied
// rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules).
IMPLIED_VPC_FIREWALL_RULE = 3;
+
+ // Implicit firewall rules that are managed by serverless VPC access to
+ // allow ingress access. They are not visible in the Google Cloud console.
+ // For details, see [VPC connector's implicit
+ // rules](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access).
+ SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4;
+
+ // Global network firewall policy rule.
+ // For details, see [Network firewall
+ // policies](https://cloud.google.com/vpc/docs/network-firewall-policies).
+ NETWORK_FIREWALL_POLICY_RULE = 5;
+
+ // Regional network firewall policy rule.
+ // For details, see [Regional network firewall
+ // policies](https://cloud.google.com/firewall/docs/regional-firewall-policies).
+ NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6;
}
// The display name of the VPC firewall rule. This field is not applicable
@@ -330,6 +382,9 @@ message RouteInfo {
// A dynamic route received from peering network.
PEERING_DYNAMIC = 6;
+
+ // Policy based route.
+ POLICY_BASED = 7;
}
// Type of next hop:
@@ -375,6 +430,21 @@ message RouteInfo {
// [router appliance
// instance](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/ra-overview).
NEXT_HOP_ROUTER_APPLIANCE = 11;
+
+ // Next hop is an NCC hub.
+ NEXT_HOP_NCC_HUB = 12;
+ }
+
+ // Indicates where routes are applicable.
+ enum RouteScope {
+ // Unspecified scope. Default value.
+ ROUTE_SCOPE_UNSPECIFIED = 0;
+
+ // Route is applicable to packets in Network.
+ NETWORK = 1;
+
+ // Route is applicable to packets using NCC Hub's routing table.
+ NCC_HUB = 2;
}
// Type of route.
@@ -383,13 +453,16 @@ message RouteInfo {
// Type of next hop.
NextHopType next_hop_type = 9;
- // Name of a Compute Engine route.
+ // Indicates where route is applicable.
+ RouteScope route_scope = 14;
+
+ // Name of a route.
string display_name = 1;
- // URI of a Compute Engine route.
- // Dynamic route from cloud router does not have a URI.
+ // URI of a route.
+ // Dynamic, peering static and peering dynamic routes do not have an URI.
// Advertised route from Google Cloud VPC to on-premises network also does
- // not have a URI.
+ // not have an URI.
string uri = 2;
// Destination IP range of the route.
@@ -398,7 +471,7 @@ message RouteInfo {
// Next hop of the route.
string next_hop = 4;
- // URI of a Compute Engine network.
+ // URI of a Compute Engine network. NETWORK routes only.
string network_uri = 5;
// Priority of the route.
@@ -406,6 +479,59 @@ message RouteInfo {
// Instance tags of the route.
repeated string instance_tags = 7;
+
+ // Source IP address range of the route. Policy based routes only.
+ string src_ip_range = 10;
+
+ // Destination port ranges of the route. Policy based routes only.
+ repeated string dest_port_ranges = 11;
+
+ // Source port ranges of the route. Policy based routes only.
+ repeated string src_port_ranges = 12;
+
+ // Protocols of the route. Policy based routes only.
+ repeated string protocols = 13;
+
+ // URI of a NCC Hub. NCC_HUB routes only.
+ optional string ncc_hub_uri = 15;
+
+ // URI of a NCC Spoke. NCC_HUB routes only.
+ optional string ncc_spoke_uri = 16;
+}
+
+// For display only. Details of a Google Service sending packets to a
+// VPC network. Although the source IP might be a publicly routable address,
+// some Google Services use special routes within Google production
+// infrastructure to reach Compute Engine Instances.
+// https://cloud.google.com/vpc/docs/routes#special_return_paths
+message GoogleServiceInfo {
+ // Recognized type of a Google Service.
+ enum GoogleServiceType {
+ // Unspecified Google Service. Includes most of Google APIs and services.
+ GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0;
+
+ // Identity aware proxy.
+ // https://cloud.google.com/iap/docs/using-tcp-forwarding
+ IAP = 1;
+
+ // One of two services sharing IP ranges:
+ // * Load Balancer proxy
+ // * Centralized Health Check prober
+ // https://cloud.google.com/load-balancing/docs/firewall-rules
+ GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2;
+
+ // Connectivity from Cloud DNS to forwarding targets or alternate name
+ // servers that use private routing.
+ // https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules
+ // https://cloud.google.com/dns/docs/policies#firewall-rules
+ CLOUD_DNS = 3;
+ }
+
+ // Source IP address.
+ string source_ip = 1;
+
+ // Recognized type of a Google Service.
+ GoogleServiceType google_service_type = 2;
}
// For display only. Metadata associated with a Compute Engine forwarding rule.
@@ -465,6 +591,9 @@ message LoadBalancerInfo {
// Target Pool as the load balancer's backend.
TARGET_POOL = 2;
+
+ // Target Instance as the load balancer's backend.
+ TARGET_INSTANCE = 3;
}
// Type of the load balancer.
@@ -611,6 +740,9 @@ message EndpointInfo {
// URI of the network where this packet is sent to.
string destination_network_uri = 7;
+
+ // URI of the source telemetry agent this packet originates from.
+ string source_agent_uri = 8;
}
// Details of the final state "deliver" and associated resource.
@@ -634,6 +766,21 @@ message DeliverInfo {
// Target is a Cloud SQL instance.
CLOUD_SQL_INSTANCE = 5;
+
+ // Target is a published service that uses [Private Service
+ // Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+ PSC_PUBLISHED_SERVICE = 6;
+
+ // Target is all Google APIs that use [Private Service
+ // Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis).
+ PSC_GOOGLE_API = 7;
+
+ // Target is a VPC-SC that uses [Private Service
+ // Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis).
+ PSC_VPC_SC = 8;
+
+ // Target is a serverless network endpoint group.
+ SERVERLESS_NEG = 9;
}
// Target type where the packet is delivered to.
@@ -667,6 +814,12 @@ message ForwardInfo {
// Forwarded to a Cloud SQL instance.
CLOUD_SQL_INSTANCE = 6;
+
+ // Forwarded to a VPC network in another project.
+ ANOTHER_PROJECT = 7;
+
+ // Forwarded to an NCC Hub.
+ NCC_HUB = 8;
}
// Target type where this packet is forwarded to.
@@ -742,6 +895,30 @@ message AbortInfo {
// Aborted because the test scenario is not supported.
UNSUPPORTED = 15;
+
+ // Aborted because the source and destination resources have no common IP
+ // version.
+ MISMATCHED_IP_VERSION = 16;
+
+ // Aborted because the connection between the control plane and the node of
+ // the source cluster is initiated by the node and managed by the
+ // Konnectivity proxy.
+ GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17;
+
+ // Aborted because expected resource configuration was missing.
+ RESOURCE_CONFIG_NOT_FOUND = 18;
+
+ // Aborted because a PSC endpoint selection for the Google-managed service
+ // is ambiguous (several PSC endpoints satisfy test input).
+ GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19;
+
+ // Aborted because tests with a PSC-based Cloud SQL instance as a source are
+ // not supported.
+ SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20;
+
+ // Aborted because tests with a forwarding rule as a source are not
+ // supported.
+ SOURCE_FORWARDING_RULE_UNSUPPORTED = 21;
}
// Causes that the analysis is aborted.
@@ -808,6 +985,10 @@ message DropInfo {
// Forwarding rule's protocol and ports do not match the packet header.
FORWARDING_RULE_MISMATCH = 11;
+ // Packet could be dropped because it was sent from a different region
+ // to a regional forwarding without global access.
+ FORWARDING_RULE_REGION_MISMATCH = 25;
+
// Forwarding rule does not have backends configured.
FORWARDING_RULE_NO_INSTANCES = 12;
@@ -821,6 +1002,12 @@ message DropInfo {
// running state.
INSTANCE_NOT_RUNNING = 14;
+ // Packet sent from or to a GKE cluster that is not in running state.
+ GKE_CLUSTER_NOT_RUNNING = 27;
+
+ // Packet sent from or to a Cloud SQL instance that is not in running state.
+ CLOUD_SQL_INSTANCE_NOT_RUNNING = 28;
+
// The type of traffic is blocked and the user cannot configure a firewall
// rule to enable it. See [Always blocked
// traffic](https://cloud.google.com/vpc/docs/firewalls#blockedtraffic) for
@@ -849,9 +1036,67 @@ message DropInfo {
// network and the Google Managed Services Network.
GOOGLE_MANAGED_SERVICE_NO_PEERING = 20;
+ // Packet was dropped because the Google-managed service uses Private
+ // Service Connect (PSC), but the PSC endpoint is not found in the project.
+ GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38;
+
+ // Packet was dropped because the GKE cluster uses Private Service Connect
+ // (PSC), but the PSC endpoint is not found in the project.
+ GKE_PSC_ENDPOINT_MISSING = 36;
+
// Packet was dropped because the Cloud SQL instance has neither a private
// nor a public IP address.
CLOUD_SQL_INSTANCE_NO_IP_ADDRESS = 21;
+
+ // Packet was dropped because a GKE cluster private endpoint is
+ // unreachable from a region different from the cluster's region.
+ GKE_CONTROL_PLANE_REGION_MISMATCH = 30;
+
+ // Packet sent from a public GKE cluster control plane to a private
+ // IP address.
+ PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31;
+
+ // Packet was dropped because there is no route from a GKE cluster
+ // control plane to a destination network.
+ GKE_CONTROL_PLANE_NO_ROUTE = 32;
+
+ // Packet sent from a Cloud SQL instance to an external IP address is not
+ // allowed. The Cloud SQL instance is not configured to send packets to
+ // external IP addresses.
+ CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33;
+
+ // Packet sent from a Cloud SQL instance with only a public IP address to a
+ // private IP address.
+ PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34;
+
+ // Packet was dropped because there is no route from a Cloud SQL
+ // instance to a destination network.
+ CLOUD_SQL_INSTANCE_NO_ROUTE = 35;
+
+ // Packet could be dropped because the Cloud Function is not in an active
+ // status.
+ CLOUD_FUNCTION_NOT_ACTIVE = 22;
+
+ // Packet could be dropped because no VPC connector is set.
+ VPC_CONNECTOR_NOT_SET = 23;
+
+ // Packet could be dropped because the VPC connector is not in a running
+ // state.
+ VPC_CONNECTOR_NOT_RUNNING = 24;
+
+ // The Private Service Connect endpoint is in a project that is not approved
+ // to connect to the service.
+ PSC_CONNECTION_NOT_ACCEPTED = 26;
+
+ // Packet sent from a Cloud Run revision that is not ready.
+ CLOUD_RUN_REVISION_NOT_READY = 29;
+
+ // Packet was dropped inside Private Service Connect service producer.
+ DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37;
+
+ // Packet sent to a load balancer, which requires a proxy-only subnet and
+ // the subnet is not found.
+ LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39;
}
// Cause that the packet is dropped.
@@ -898,3 +1143,99 @@ message CloudSQLInstanceInfo {
// Region in which the Cloud SQL instance is running.
string region = 7;
}
+
+// For display only. Metadata associated with a Cloud Function.
+message CloudFunctionInfo {
+ // Name of a Cloud Function.
+ string display_name = 1;
+
+ // URI of a Cloud Function.
+ string uri = 2;
+
+ // Location in which the Cloud Function is deployed.
+ string location = 3;
+
+ // Latest successfully deployed version id of the Cloud Function.
+ int64 version_id = 4;
+}
+
+// For display only. Metadata associated with a Cloud Run revision.
+message CloudRunRevisionInfo {
+ // Name of a Cloud Run revision.
+ string display_name = 1;
+
+ // URI of a Cloud Run revision.
+ string uri = 2;
+
+ // Location in which this revision is deployed.
+ string location = 4;
+
+ // URI of Cloud Run service this revision belongs to.
+ string service_uri = 5;
+}
+
+// For display only. Metadata associated with an App Engine version.
+message AppEngineVersionInfo {
+ // Name of an App Engine version.
+ string display_name = 1;
+
+ // URI of an App Engine version.
+ string uri = 2;
+
+ // Runtime of the App Engine version.
+ string runtime = 3;
+
+ // App Engine execution environment for a version.
+ string environment = 4;
+}
+
+// For display only. Metadata associated with a VPC connector.
+message VpcConnectorInfo {
+ // Name of a VPC connector.
+ string display_name = 1;
+
+ // URI of a VPC connector.
+ string uri = 2;
+
+ // Location in which the VPC connector is deployed.
+ string location = 3;
+}
+
+// Type of a load balancer. For more information, see [Summary of Google Cloud
+// load
+// balancers](https://cloud.google.com/load-balancing/docs/load-balancing-overview#summary-of-google-cloud-load-balancers).
+enum LoadBalancerType {
+ // Forwarding rule points to a different target than a load balancer or a
+ // load balancer type is unknown.
+ LOAD_BALANCER_TYPE_UNSPECIFIED = 0;
+
+ // Global external HTTP(S) load balancer.
+ HTTPS_ADVANCED_LOAD_BALANCER = 1;
+
+ // Global external HTTP(S) load balancer (classic)
+ HTTPS_LOAD_BALANCER = 2;
+
+ // Regional external HTTP(S) load balancer.
+ REGIONAL_HTTPS_LOAD_BALANCER = 3;
+
+ // Internal HTTP(S) load balancer.
+ INTERNAL_HTTPS_LOAD_BALANCER = 4;
+
+ // External SSL proxy load balancer.
+ SSL_PROXY_LOAD_BALANCER = 5;
+
+ // External TCP proxy load balancer.
+ TCP_PROXY_LOAD_BALANCER = 6;
+
+ // Internal regional TCP proxy load balancer.
+ INTERNAL_TCP_PROXY_LOAD_BALANCER = 7;
+
+ // External TCP/UDP Network load balancer.
+ NETWORK_LOAD_BALANCER = 8;
+
+ // Target-pool based external TCP/UDP Network load balancer.
+ LEGACY_NETWORK_LOAD_BALANCER = 9;
+
+ // Internal TCP/UDP load balancer.
+ TCP_UDP_INTERNAL_LOAD_BALANCER = 10;
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java
index 90ce82c04737..7cebde98171e 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java
@@ -249,6 +249,72 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* UNSUPPORTED = 15;
*/
UNSUPPORTED(15),
+ /**
+ *
+ *
+ * + * Aborted because the source and destination resources have no common IP + * version. + *+ * + *
MISMATCHED_IP_VERSION = 16;
+ */
+ MISMATCHED_IP_VERSION(16),
+ /**
+ *
+ *
+ * + * Aborted because the connection between the control plane and the node of + * the source cluster is initiated by the node and managed by the + * Konnectivity proxy. + *+ * + *
GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17;
+ */
+ GKE_KONNECTIVITY_PROXY_UNSUPPORTED(17),
+ /**
+ *
+ *
+ * + * Aborted because expected resource configuration was missing. + *+ * + *
RESOURCE_CONFIG_NOT_FOUND = 18;
+ */
+ RESOURCE_CONFIG_NOT_FOUND(18),
+ /**
+ *
+ *
+ * + * Aborted because a PSC endpoint selection for the Google-managed service + * is ambiguous (several PSC endpoints satisfy test input). + *+ * + *
GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19;
+ */
+ GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT(19),
+ /**
+ *
+ *
+ * + * Aborted because tests with a PSC-based Cloud SQL instance as a source are + * not supported. + *+ * + *
SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20;
+ */
+ SOURCE_PSC_CLOUD_SQL_UNSUPPORTED(20),
+ /**
+ *
+ *
+ * + * Aborted because tests with a forwarding rule as a source are not + * supported. + *+ * + *
SOURCE_FORWARDING_RULE_UNSUPPORTED = 21;
+ */
+ SOURCE_FORWARDING_RULE_UNSUPPORTED(21),
UNRECOGNIZED(-1),
;
@@ -427,6 +493,72 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* UNSUPPORTED = 15;
*/
public static final int UNSUPPORTED_VALUE = 15;
+ /**
+ *
+ *
+ * + * Aborted because the source and destination resources have no common IP + * version. + *+ * + *
MISMATCHED_IP_VERSION = 16;
+ */
+ public static final int MISMATCHED_IP_VERSION_VALUE = 16;
+ /**
+ *
+ *
+ * + * Aborted because the connection between the control plane and the node of + * the source cluster is initiated by the node and managed by the + * Konnectivity proxy. + *+ * + *
GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17;
+ */
+ public static final int GKE_KONNECTIVITY_PROXY_UNSUPPORTED_VALUE = 17;
+ /**
+ *
+ *
+ * + * Aborted because expected resource configuration was missing. + *+ * + *
RESOURCE_CONFIG_NOT_FOUND = 18;
+ */
+ public static final int RESOURCE_CONFIG_NOT_FOUND_VALUE = 18;
+ /**
+ *
+ *
+ * + * Aborted because a PSC endpoint selection for the Google-managed service + * is ambiguous (several PSC endpoints satisfy test input). + *+ * + *
GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19;
+ */
+ public static final int GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT_VALUE = 19;
+ /**
+ *
+ *
+ * + * Aborted because tests with a PSC-based Cloud SQL instance as a source are + * not supported. + *+ * + *
SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20;
+ */
+ public static final int SOURCE_PSC_CLOUD_SQL_UNSUPPORTED_VALUE = 20;
+ /**
+ *
+ *
+ * + * Aborted because tests with a forwarding rule as a source are not + * supported. + *+ * + *
SOURCE_FORWARDING_RULE_UNSUPPORTED = 21;
+ */
+ public static final int SOURCE_FORWARDING_RULE_UNSUPPORTED_VALUE = 21;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -484,6 +616,18 @@ public static Cause forNumber(int value) {
return MISMATCHED_DESTINATION_NETWORK;
case 15:
return UNSUPPORTED;
+ case 16:
+ return MISMATCHED_IP_VERSION;
+ case 17:
+ return GKE_KONNECTIVITY_PROXY_UNSUPPORTED;
+ case 18:
+ return RESOURCE_CONFIG_NOT_FOUND;
+ case 19:
+ return GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT;
+ case 20:
+ return SOURCE_PSC_CLOUD_SQL_UNSUPPORTED;
+ case 21:
+ return SOURCE_FORWARDING_RULE_UNSUPPORTED;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AppEngineVersionInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AppEngineVersionInfo.java
new file mode 100644
index 000000000000..13fdcfeefbd0
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AppEngineVersionInfo.java
@@ -0,0 +1,1178 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1beta1/trace.proto
+
+package com.google.cloud.networkmanagement.v1beta1;
+
+/**
+ *
+ *
+ * + * For display only. Metadata associated with an App Engine version. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo} + */ +public final class AppEngineVersionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) + AppEngineVersionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppEngineVersionInfo.newBuilder() to construct. + private AppEngineVersionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AppEngineVersionInfo() { + displayName_ = ""; + uri_ = ""; + runtime_ = ""; + environment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AppEngineVersionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_AppEngineVersionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_AppEngineVersionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.class, + com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+ * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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 URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RUNTIME_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object runtime_ = "";
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The runtime.
+ */
+ @java.lang.Override
+ public java.lang.String getRuntime() {
+ java.lang.Object ref = runtime_;
+ 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();
+ runtime_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The bytes for runtime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRuntimeBytes() {
+ java.lang.Object ref = runtime_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ runtime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENVIRONMENT_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object environment_ = "";
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The environment.
+ */
+ @java.lang.Override
+ public java.lang.String getEnvironment() {
+ java.lang.Object ref = environment_;
+ 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();
+ environment_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The bytes for environment.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEnvironmentBytes() {
+ java.lang.Object ref = environment_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ environment_ = 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.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, runtime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, environment_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, runtime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, environment_);
+ }
+ 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.networkmanagement.v1beta1.AppEngineVersionInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo other =
+ (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getRuntime().equals(other.getRuntime())) return false;
+ if (!getEnvironment().equals(other.getEnvironment())) 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) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + RUNTIME_FIELD_NUMBER;
+ hash = (53 * hash) + getRuntime().hashCode();
+ hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getEnvironment().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo 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.networkmanagement.v1beta1.AppEngineVersionInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo 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.networkmanagement.v1beta1.AppEngineVersionInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.AppEngineVersionInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * For display only. Metadata associated with an App Engine version. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object runtime_ = "";
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The runtime.
+ */
+ public java.lang.String getRuntime() {
+ java.lang.Object ref = runtime_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ runtime_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The bytes for runtime.
+ */
+ public com.google.protobuf.ByteString getRuntimeBytes() {
+ java.lang.Object ref = runtime_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ runtime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @param value The runtime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRuntime(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ runtime_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRuntime() {
+ runtime_ = getDefaultInstance().getRuntime();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @param value The bytes for runtime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRuntimeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ runtime_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object environment_ = "";
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The environment.
+ */
+ public java.lang.String getEnvironment() {
+ java.lang.Object ref = environment_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ environment_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The bytes for environment.
+ */
+ public com.google.protobuf.ByteString getEnvironmentBytes() {
+ java.lang.Object ref = environment_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ environment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @param value The environment to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnvironment(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ environment_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnvironment() {
+ environment_ = getDefaultInstance().getEnvironment();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @param value The bytes for environment to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ environment_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo)
+ private static final com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo();
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ * + * Name of an App Engine version. + *+ * + *
string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * URI of an App Engine version. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The runtime.
+ */
+ java.lang.String getRuntime();
+ /**
+ *
+ *
+ * + * Runtime of the App Engine version. + *+ * + *
string runtime = 3;
+ *
+ * @return The bytes for runtime.
+ */
+ com.google.protobuf.ByteString getRuntimeBytes();
+
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The environment.
+ */
+ java.lang.String getEnvironment();
+ /**
+ *
+ *
+ * + * App Engine execution environment for a version. + *+ * + *
string environment = 4;
+ *
+ * @return The bytes for environment.
+ */
+ com.google.protobuf.ByteString getEnvironmentBytes();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudFunctionInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudFunctionInfo.java
index 5092b6d7c0d3..1d9be145dfb1 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudFunctionInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudFunctionInfo.java
@@ -22,7 +22,7 @@
*
*
* - * For display only. Metadata associated with a Cloud function. + * For display only. Metadata associated with a Cloud Function. ** * Protobuf type {@code google.cloud.networkmanagement.v1beta1.CloudFunctionInfo} @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
- * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -95,7 +95,7 @@ public java.lang.String getDisplayName() {
*
*
* - * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -123,7 +123,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -146,7 +146,7 @@ public java.lang.String getUri() {
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -174,7 +174,7 @@ public com.google.protobuf.ByteString getUriBytes() {
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -197,7 +197,7 @@ public java.lang.String getLocation() {
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -223,7 +223,7 @@ public com.google.protobuf.ByteString getLocationBytes() {
*
*
* - * Latest successfully deployed version id of the Cloud function. + * Latest successfully deployed version id of the Cloud Function. ** *
int64 version_id = 4;
@@ -426,7 +426,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * For display only. Metadata associated with a Cloud function. + * For display only. Metadata associated with a Cloud Function. ** * Protobuf type {@code google.cloud.networkmanagement.v1beta1.CloudFunctionInfo} @@ -656,7 +656,7 @@ public Builder mergeFrom( * * *
- * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -678,7 +678,7 @@ public java.lang.String getDisplayName() {
*
*
* - * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
* - * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -721,7 +721,7 @@ public Builder setDisplayName(java.lang.String value) {
*
*
* - * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -738,7 +738,7 @@ public Builder clearDisplayName() {
*
*
* - * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -762,7 +762,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -784,7 +784,7 @@ public java.lang.String getUri() {
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -806,7 +806,7 @@ public com.google.protobuf.ByteString getUriBytes() {
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -827,7 +827,7 @@ public Builder setUri(java.lang.String value) {
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -844,7 +844,7 @@ public Builder clearUri() {
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -868,7 +868,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -890,7 +890,7 @@ public java.lang.String getLocation() {
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -912,7 +912,7 @@ public com.google.protobuf.ByteString getLocationBytes() {
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -933,7 +933,7 @@ public Builder setLocation(java.lang.String value) {
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -950,7 +950,7 @@ public Builder clearLocation() {
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -974,7 +974,7 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) {
*
*
* - * Latest successfully deployed version id of the Cloud function. + * Latest successfully deployed version id of the Cloud Function. ** *
int64 version_id = 4;
@@ -989,7 +989,7 @@ public long getVersionId() {
*
*
* - * Latest successfully deployed version id of the Cloud function. + * Latest successfully deployed version id of the Cloud Function. ** *
int64 version_id = 4;
@@ -1008,7 +1008,7 @@ public Builder setVersionId(long value) {
*
*
* - * Latest successfully deployed version id of the Cloud function. + * Latest successfully deployed version id of the Cloud Function. ** *
int64 version_id = 4;
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudFunctionInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudFunctionInfoOrBuilder.java
index 81be69d53279..2911019e7a9d 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudFunctionInfoOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudFunctionInfoOrBuilder.java
@@ -27,7 +27,7 @@ public interface CloudFunctionInfoOrBuilder
*
*
* - * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -39,7 +39,7 @@ public interface CloudFunctionInfoOrBuilder
*
*
* - * Name of a Cloud function. + * Name of a Cloud Function. ** *
string display_name = 1;
@@ -52,7 +52,7 @@ public interface CloudFunctionInfoOrBuilder
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -64,7 +64,7 @@ public interface CloudFunctionInfoOrBuilder
*
*
* - * URI of a Cloud function. + * URI of a Cloud Function. ** *
string uri = 2;
@@ -77,7 +77,7 @@ public interface CloudFunctionInfoOrBuilder
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -89,7 +89,7 @@ public interface CloudFunctionInfoOrBuilder
*
*
* - * Location in which the Cloud function is deployed. + * Location in which the Cloud Function is deployed. ** *
string location = 3;
@@ -102,7 +102,7 @@ public interface CloudFunctionInfoOrBuilder
*
*
* - * Latest successfully deployed version id of the Cloud function. + * Latest successfully deployed version id of the Cloud Function. ** *
int64 version_id = 4;
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudRunRevisionInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudRunRevisionInfo.java
new file mode 100644
index 000000000000..081a46cddebd
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CloudRunRevisionInfo.java
@@ -0,0 +1,1178 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1beta1/trace.proto
+
+package com.google.cloud.networkmanagement.v1beta1;
+
+/**
+ *
+ *
+ * + * For display only. Metadata associated with a Cloud Run revision. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo} + */ +public final class CloudRunRevisionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) + CloudRunRevisionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudRunRevisionInfo.newBuilder() to construct. + private CloudRunRevisionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudRunRevisionInfo() { + displayName_ = ""; + uri_ = ""; + location_ = ""; + serviceUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudRunRevisionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_CloudRunRevisionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_CloudRunRevisionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.class, + com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+ * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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 URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOCATION_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object location_ = "";
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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 SERVICE_URI_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object serviceUri_ = "";
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The serviceUri.
+ */
+ @java.lang.Override
+ public java.lang.String getServiceUri() {
+ java.lang.Object ref = serviceUri_;
+ 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();
+ serviceUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The bytes for serviceUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getServiceUriBytes() {
+ java.lang.Object ref = serviceUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceUri_ = 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.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceUri_);
+ }
+ 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.networkmanagement.v1beta1.CloudRunRevisionInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo other =
+ (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getLocation().equals(other.getLocation())) return false;
+ if (!getServiceUri().equals(other.getServiceUri())) 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) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getLocation().hashCode();
+ hash = (37 * hash) + SERVICE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo 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.networkmanagement.v1beta1.CloudRunRevisionInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo 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.networkmanagement.v1beta1.CloudRunRevisionInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.CloudRunRevisionInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * For display only. Metadata associated with a Cloud Run revision. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object location_ = "";
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLocation() {
+ location_ = getDefaultInstance().getLocation();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceUri_ = "";
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The serviceUri.
+ */
+ public java.lang.String getServiceUri() {
+ java.lang.Object ref = serviceUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The bytes for serviceUri.
+ */
+ public com.google.protobuf.ByteString getServiceUriBytes() {
+ java.lang.Object ref = serviceUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @param value The serviceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ serviceUri_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceUri() {
+ serviceUri_ = getDefaultInstance().getServiceUri();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @param value The bytes for serviceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ serviceUri_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo)
+ private static final com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo();
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ * + * Name of a Cloud Run revision. + *+ * + *
string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * URI of a Cloud Run revision. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @return The location.
+ */
+ java.lang.String getLocation();
+ /**
+ *
+ *
+ * + * Location in which this revision is deployed. + *+ * + *
string location = 4;
+ *
+ * @return The bytes for location.
+ */
+ com.google.protobuf.ByteString getLocationBytes();
+
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The serviceUri.
+ */
+ java.lang.String getServiceUri();
+ /**
+ *
+ *
+ * + * URI of Cloud Run service this revision belongs to. + *+ * + *
string service_uri = 5;
+ *
+ * @return The bytes for serviceUri.
+ */
+ com.google.protobuf.ByteString getServiceUriBytes();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java
index 9730bca51f2e..22d8e0774e84 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java
@@ -137,7 +137,7 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
*
*
* - * Target is a published service using [Private Service + * Target is a published service that uses [Private Service * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). ** @@ -148,7 +148,7 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * * *
- * Target is all Google APIs using [Private Service + * Target is all Google APIs that use [Private Service * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). ** @@ -159,13 +159,23 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * * *
- * Target is VPC-SC using [Private Service + * Target is a VPC-SC that uses [Private Service * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). ** *
PSC_VPC_SC = 8;
*/
PSC_VPC_SC(8),
+ /**
+ *
+ *
+ * + * Target is a serverless network endpoint group. + *+ * + *
SERVERLESS_NEG = 9;
+ */
+ SERVERLESS_NEG(9),
UNRECOGNIZED(-1),
;
@@ -233,7 +243,7 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
*
*
* - * Target is a published service using [Private Service + * Target is a published service that uses [Private Service * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). ** @@ -244,7 +254,7 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * * *
- * Target is all Google APIs using [Private Service + * Target is all Google APIs that use [Private Service * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). ** @@ -255,13 +265,23 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * * *
- * Target is VPC-SC using [Private Service + * Target is a VPC-SC that uses [Private Service * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). ** *
PSC_VPC_SC = 8;
*/
public static final int PSC_VPC_SC_VALUE = 8;
+ /**
+ *
+ *
+ * + * Target is a serverless network endpoint group. + *+ * + *
SERVERLESS_NEG = 9;
+ */
+ public static final int SERVERLESS_NEG_VALUE = 9;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -305,6 +325,8 @@ public static Target forNumber(int value) {
return PSC_GOOGLE_API;
case 8:
return PSC_VPC_SC;
+ case 9:
+ return SERVERLESS_NEG;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java
index 970cfbfd7fa1..b7c47d1628dc 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java
@@ -205,6 +205,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* FORWARDING_RULE_MISMATCH = 11;
*/
FORWARDING_RULE_MISMATCH(11),
+ /**
+ *
+ *
+ * + * Packet could be dropped because it was sent from a different region + * to a regional forwarding without global access. + *+ * + *
FORWARDING_RULE_REGION_MISMATCH = 25;
+ */
+ FORWARDING_RULE_REGION_MISMATCH(25),
/**
*
*
@@ -239,6 +250,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* INSTANCE_NOT_RUNNING = 14;
*/
INSTANCE_NOT_RUNNING(14),
+ /**
+ *
+ *
+ * + * Packet sent from or to a GKE cluster that is not in running state. + *+ * + *
GKE_CLUSTER_NOT_RUNNING = 27;
+ */
+ GKE_CLUSTER_NOT_RUNNING(27),
+ /**
+ *
+ *
+ * + * Packet sent from or to a Cloud SQL instance that is not in running state. + *+ * + *
CLOUD_SQL_INSTANCE_NOT_RUNNING = 28;
+ */
+ CLOUD_SQL_INSTANCE_NOT_RUNNING(28),
/**
*
*
@@ -309,6 +340,28 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* GOOGLE_MANAGED_SERVICE_NO_PEERING = 20;
*/
GOOGLE_MANAGED_SERVICE_NO_PEERING(20),
+ /**
+ *
+ *
+ * + * Packet was dropped because the Google-managed service uses Private + * Service Connect (PSC), but the PSC endpoint is not found in the project. + *+ * + *
GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38;
+ */
+ GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT(38),
+ /**
+ *
+ *
+ * + * Packet was dropped because the GKE cluster uses Private Service Connect + * (PSC), but the PSC endpoint is not found in the project. + *+ * + *
GKE_PSC_ENDPOINT_MISSING = 36;
+ */
+ GKE_PSC_ENDPOINT_MISSING(36),
/**
*
*
@@ -324,7 +377,74 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
*
*
* - * Packet could be dropped because the Cloud function is not in an active + * Packet was dropped because a GKE cluster private endpoint is + * unreachable from a region different from the cluster's region. + *+ * + *
GKE_CONTROL_PLANE_REGION_MISMATCH = 30;
+ */
+ GKE_CONTROL_PLANE_REGION_MISMATCH(30),
+ /**
+ *
+ *
+ * + * Packet sent from a public GKE cluster control plane to a private + * IP address. + *+ * + *
PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31;
+ */
+ PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION(31),
+ /**
+ *
+ *
+ * + * Packet was dropped because there is no route from a GKE cluster + * control plane to a destination network. + *+ * + *
GKE_CONTROL_PLANE_NO_ROUTE = 32;
+ */
+ GKE_CONTROL_PLANE_NO_ROUTE(32),
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud SQL instance to an external IP address is not + * allowed. The Cloud SQL instance is not configured to send packets to + * external IP addresses. + *+ * + *
CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33;
+ */
+ CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC(33),
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud SQL instance with only a public IP address to a + * private IP address. + *+ * + *
PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34;
+ */
+ PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION(34),
+ /**
+ *
+ *
+ * + * Packet was dropped because there is no route from a Cloud SQL + * instance to a destination network. + *+ * + *
CLOUD_SQL_INSTANCE_NO_ROUTE = 35;
+ */
+ CLOUD_SQL_INSTANCE_NO_ROUTE(35),
+ /**
+ *
+ *
+ * + * Packet could be dropped because the Cloud Function is not in an active * status. ** @@ -356,23 +476,44 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
- * Packet could be dropped because it was sent from a different region - * to a regional forwarding without global access. + * The Private Service Connect endpoint is in a project that is not approved + * to connect to the service. ** - *
FORWARDING_RULE_REGION_MISMATCH = 25;
+ * PSC_CONNECTION_NOT_ACCEPTED = 26;
*/
- FORWARDING_RULE_REGION_MISMATCH(25),
+ PSC_CONNECTION_NOT_ACCEPTED(26),
/**
*
*
* - * Privte Service Connect (PSC) connection is not in accepted state. + * Packet sent from a Cloud Run revision that is not ready. ** - *
PSC_CONNECTION_NOT_ACCEPTED = 26;
+ * CLOUD_RUN_REVISION_NOT_READY = 29;
*/
- PSC_CONNECTION_NOT_ACCEPTED(26),
+ CLOUD_RUN_REVISION_NOT_READY(29),
+ /**
+ *
+ *
+ * + * Packet was dropped inside Private Service Connect service producer. + *+ * + *
DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37;
+ */
+ DROPPED_INSIDE_PSC_SERVICE_PRODUCER(37),
+ /**
+ *
+ *
+ * + * Packet sent to a load balancer, which requires a proxy-only subnet and + * the subnet is not found. + *+ * + *
LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39;
+ */
+ LOAD_BALANCER_HAS_NO_PROXY_SUBNET(39),
UNRECOGNIZED(-1),
;
@@ -508,6 +649,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* FORWARDING_RULE_MISMATCH = 11;
*/
public static final int FORWARDING_RULE_MISMATCH_VALUE = 11;
+ /**
+ *
+ *
+ * + * Packet could be dropped because it was sent from a different region + * to a regional forwarding without global access. + *+ * + *
FORWARDING_RULE_REGION_MISMATCH = 25;
+ */
+ public static final int FORWARDING_RULE_REGION_MISMATCH_VALUE = 25;
/**
*
*
@@ -542,6 +694,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* INSTANCE_NOT_RUNNING = 14;
*/
public static final int INSTANCE_NOT_RUNNING_VALUE = 14;
+ /**
+ *
+ *
+ * + * Packet sent from or to a GKE cluster that is not in running state. + *+ * + *
GKE_CLUSTER_NOT_RUNNING = 27;
+ */
+ public static final int GKE_CLUSTER_NOT_RUNNING_VALUE = 27;
+ /**
+ *
+ *
+ * + * Packet sent from or to a Cloud SQL instance that is not in running state. + *+ * + *
CLOUD_SQL_INSTANCE_NOT_RUNNING = 28;
+ */
+ public static final int CLOUD_SQL_INSTANCE_NOT_RUNNING_VALUE = 28;
/**
*
*
@@ -612,6 +784,28 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
* GOOGLE_MANAGED_SERVICE_NO_PEERING = 20;
*/
public static final int GOOGLE_MANAGED_SERVICE_NO_PEERING_VALUE = 20;
+ /**
+ *
+ *
+ * + * Packet was dropped because the Google-managed service uses Private + * Service Connect (PSC), but the PSC endpoint is not found in the project. + *+ * + *
GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38;
+ */
+ public static final int GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT_VALUE = 38;
+ /**
+ *
+ *
+ * + * Packet was dropped because the GKE cluster uses Private Service Connect + * (PSC), but the PSC endpoint is not found in the project. + *+ * + *
GKE_PSC_ENDPOINT_MISSING = 36;
+ */
+ public static final int GKE_PSC_ENDPOINT_MISSING_VALUE = 36;
/**
*
*
@@ -627,7 +821,74 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
*
*
* - * Packet could be dropped because the Cloud function is not in an active + * Packet was dropped because a GKE cluster private endpoint is + * unreachable from a region different from the cluster's region. + *+ * + *
GKE_CONTROL_PLANE_REGION_MISMATCH = 30;
+ */
+ public static final int GKE_CONTROL_PLANE_REGION_MISMATCH_VALUE = 30;
+ /**
+ *
+ *
+ * + * Packet sent from a public GKE cluster control plane to a private + * IP address. + *+ * + *
PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31;
+ */
+ public static final int PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION_VALUE = 31;
+ /**
+ *
+ *
+ * + * Packet was dropped because there is no route from a GKE cluster + * control plane to a destination network. + *+ * + *
GKE_CONTROL_PLANE_NO_ROUTE = 32;
+ */
+ public static final int GKE_CONTROL_PLANE_NO_ROUTE_VALUE = 32;
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud SQL instance to an external IP address is not + * allowed. The Cloud SQL instance is not configured to send packets to + * external IP addresses. + *+ * + *
CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33;
+ */
+ public static final int CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC_VALUE = 33;
+ /**
+ *
+ *
+ * + * Packet sent from a Cloud SQL instance with only a public IP address to a + * private IP address. + *+ * + *
PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34;
+ */
+ public static final int PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION_VALUE = 34;
+ /**
+ *
+ *
+ * + * Packet was dropped because there is no route from a Cloud SQL + * instance to a destination network. + *+ * + *
CLOUD_SQL_INSTANCE_NO_ROUTE = 35;
+ */
+ public static final int CLOUD_SQL_INSTANCE_NO_ROUTE_VALUE = 35;
+ /**
+ *
+ *
+ * + * Packet could be dropped because the Cloud Function is not in an active * status. ** @@ -659,23 +920,44 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
- * Packet could be dropped because it was sent from a different region - * to a regional forwarding without global access. + * The Private Service Connect endpoint is in a project that is not approved + * to connect to the service. ** - *
FORWARDING_RULE_REGION_MISMATCH = 25;
+ * PSC_CONNECTION_NOT_ACCEPTED = 26;
*/
- public static final int FORWARDING_RULE_REGION_MISMATCH_VALUE = 25;
+ public static final int PSC_CONNECTION_NOT_ACCEPTED_VALUE = 26;
/**
*
*
* - * Privte Service Connect (PSC) connection is not in accepted state. + * Packet sent from a Cloud Run revision that is not ready. ** - *
PSC_CONNECTION_NOT_ACCEPTED = 26;
+ * CLOUD_RUN_REVISION_NOT_READY = 29;
*/
- public static final int PSC_CONNECTION_NOT_ACCEPTED_VALUE = 26;
+ public static final int CLOUD_RUN_REVISION_NOT_READY_VALUE = 29;
+ /**
+ *
+ *
+ * + * Packet was dropped inside Private Service Connect service producer. + *+ * + *
DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37;
+ */
+ public static final int DROPPED_INSIDE_PSC_SERVICE_PRODUCER_VALUE = 37;
+ /**
+ *
+ *
+ * + * Packet sent to a load balancer, which requires a proxy-only subnet and + * the subnet is not found. + *+ * + *
LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39;
+ */
+ public static final int LOAD_BALANCER_HAS_NO_PROXY_SUBNET_VALUE = 39;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -725,12 +1007,18 @@ public static Cause forNumber(int value) {
return UNKNOWN_INTERNAL_ADDRESS;
case 11:
return FORWARDING_RULE_MISMATCH;
+ case 25:
+ return FORWARDING_RULE_REGION_MISMATCH;
case 12:
return FORWARDING_RULE_NO_INSTANCES;
case 13:
return FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK;
case 14:
return INSTANCE_NOT_RUNNING;
+ case 27:
+ return GKE_CLUSTER_NOT_RUNNING;
+ case 28:
+ return CLOUD_SQL_INSTANCE_NOT_RUNNING;
case 15:
return TRAFFIC_TYPE_BLOCKED;
case 16:
@@ -743,18 +1031,38 @@ public static Cause forNumber(int value) {
return DROPPED_INSIDE_CLOUD_SQL_SERVICE;
case 20:
return GOOGLE_MANAGED_SERVICE_NO_PEERING;
+ case 38:
+ return GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT;
+ case 36:
+ return GKE_PSC_ENDPOINT_MISSING;
case 21:
return CLOUD_SQL_INSTANCE_NO_IP_ADDRESS;
+ case 30:
+ return GKE_CONTROL_PLANE_REGION_MISMATCH;
+ case 31:
+ return PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION;
+ case 32:
+ return GKE_CONTROL_PLANE_NO_ROUTE;
+ case 33:
+ return CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC;
+ case 34:
+ return PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION;
+ case 35:
+ return CLOUD_SQL_INSTANCE_NO_ROUTE;
case 22:
return CLOUD_FUNCTION_NOT_ACTIVE;
case 23:
return VPC_CONNECTOR_NOT_SET;
case 24:
return VPC_CONNECTOR_NOT_RUNNING;
- case 25:
- return FORWARDING_RULE_REGION_MISMATCH;
case 26:
return PSC_CONNECTION_NOT_ACCEPTED;
+ case 29:
+ return CLOUD_RUN_REVISION_NOT_READY;
+ case 37:
+ return DROPPED_INSIDE_PSC_SERVICE_PRODUCER;
+ case 39:
+ return LOAD_BALANCER_HAS_NO_PROXY_SUBNET;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java
index 9d54302ba078..f04bea09b477 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java
@@ -41,6 +41,9 @@ private Endpoint() {
ipAddress_ = "";
instance_ = "";
forwardingRule_ = "";
+ forwardingRuleTarget_ = 0;
+ loadBalancerId_ = "";
+ loadBalancerType_ = 0;
gkeMasterCluster_ = "";
cloudSqlInstance_ = "";
network_ = "";
@@ -237,6 +240,214 @@ private NetworkType(int value) {
// @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType)
}
+ /**
+ *
+ *
+ * + * Type of the target of a forwarding rule. + *+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget} + */ + public enum ForwardingRuleTarget implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Forwarding rule target is unknown. + *+ * + *
FORWARDING_RULE_TARGET_UNSPECIFIED = 0;
+ */
+ FORWARDING_RULE_TARGET_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Compute Engine instance for protocol forwarding. + *+ * + *
INSTANCE = 1;
+ */
+ INSTANCE(1),
+ /**
+ *
+ *
+ * + * Load Balancer. The specific type can be found from [load_balancer_type] + * [google.cloud.networkmanagement.v1beta1.Endpoint.load_balancer_type]. + *+ * + *
LOAD_BALANCER = 2;
+ */
+ LOAD_BALANCER(2),
+ /**
+ *
+ *
+ * + * Classic Cloud VPN Gateway. + *+ * + *
VPN_GATEWAY = 3;
+ */
+ VPN_GATEWAY(3),
+ /**
+ *
+ *
+ * + * Forwarding Rule is a Private Service Connect endpoint. + *+ * + *
PSC = 4;
+ */
+ PSC(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Forwarding rule target is unknown. + *+ * + *
FORWARDING_RULE_TARGET_UNSPECIFIED = 0;
+ */
+ public static final int FORWARDING_RULE_TARGET_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Compute Engine instance for protocol forwarding. + *+ * + *
INSTANCE = 1;
+ */
+ public static final int INSTANCE_VALUE = 1;
+ /**
+ *
+ *
+ * + * Load Balancer. The specific type can be found from [load_balancer_type] + * [google.cloud.networkmanagement.v1beta1.Endpoint.load_balancer_type]. + *+ * + *
LOAD_BALANCER = 2;
+ */
+ public static final int LOAD_BALANCER_VALUE = 2;
+ /**
+ *
+ *
+ * + * Classic Cloud VPN Gateway. + *+ * + *
VPN_GATEWAY = 3;
+ */
+ public static final int VPN_GATEWAY_VALUE = 3;
+ /**
+ *
+ *
+ * + * Forwarding Rule is a Private Service Connect endpoint. + *+ * + *
PSC = 4;
+ */
+ public static final int PSC_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 ForwardingRuleTarget 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 ForwardingRuleTarget forNumber(int value) {
+ switch (value) {
+ case 0:
+ return FORWARDING_RULE_TARGET_UNSPECIFIED;
+ case 1:
+ return INSTANCE;
+ case 2:
+ return LOAD_BALANCER;
+ case 3:
+ return VPN_GATEWAY;
+ case 4:
+ return PSC;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap- * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -258,7 +469,7 @@ public interface CloudFunctionEndpointOrBuilder
*
*
* - * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -271,7 +482,7 @@ public interface CloudFunctionEndpointOrBuilder
*
*
* - * Wrapper for cloud function attributes. + * Wrapper for Cloud Function attributes. ** * Protobuf type {@code google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint} @@ -320,7 +531,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
- * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -343,7 +554,7 @@ public java.lang.String getUri() {
*
*
* - * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -535,7 +746,7 @@ protected Builder newBuilderForType(
*
*
* - * Wrapper for cloud function attributes. + * Wrapper for Cloud Function attributes. ** * Protobuf type {@code google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint} @@ -733,7 +944,7 @@ public Builder mergeFrom( * * *
- * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -755,7 +966,7 @@ public java.lang.String getUri() {
*
*
* - * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -777,7 +988,7 @@ public com.google.protobuf.ByteString getUriBytes() {
*
*
* - * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -798,7 +1009,7 @@ public Builder setUri(java.lang.String value) {
*
*
* - * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -815,7 +1026,7 @@ public Builder clearUri() {
*
*
* - * A [Cloud function](https://cloud.google.com/functions) name. + * A [Cloud Function](https://cloud.google.com/functions) name. ** *
string uri = 1;
@@ -902,1104 +1113,3511 @@ public com.google.protobuf.Parser- * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer - * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). - *- * - *
string ip_address = 1;
- *
- * @return The ipAddress.
- */
- @java.lang.Override
- public java.lang.String getIpAddress() {
- java.lang.Object ref = ipAddress_;
- 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();
- ipAddress_ = s;
- return s;
- }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
}
/**
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer - * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + * Wrapper for the App Engine service version attributes. ** - *
string ip_address = 1;
- *
- * @return The bytes for ipAddress.
+ * Protobuf type {@code google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint}
*/
- @java.lang.Override
- public com.google.protobuf.ByteString getIpAddressBytes() {
- java.lang.Object ref = ipAddress_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- ipAddress_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public static final class AppEngineVersionEndpoint extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint)
+ AppEngineVersionEndpointOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AppEngineVersionEndpoint.newBuilder() to construct.
+ private AppEngineVersionEndpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- }
- public static final int PORT_FIELD_NUMBER = 2;
- private int port_ = 0;
- /**
- *
- *
- * - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. - *- * - *
int32 port = 2;
- *
- * @return The port.
- */
- @java.lang.Override
- public int getPort() {
- return port_;
- }
+ private AppEngineVersionEndpoint() {
+ uri_ = "";
+ }
- public static final int INSTANCE_FIELD_NUMBER = 3;
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AppEngineVersionEndpoint();
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object instance_ = "";
- /**
- *
- *
- * - * A Compute Engine instance URI. - *- * - *
string instance = 3;
- *
- * @return The instance.
- */
- @java.lang.Override
- public java.lang.String getInstance() {
- java.lang.Object ref = instance_;
- 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();
- instance_ = s;
- return s;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.networkmanagement.v1beta1.TestOuterClass
+ .internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_AppEngineVersionEndpoint_descriptor;
}
- }
- /**
- *
- *
- * - * A Compute Engine instance URI. - *- * - *
string instance = 3;
- *
- * @return The bytes for instance.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getInstanceBytes() {
- java.lang.Object ref = instance_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- instance_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.networkmanagement.v1beta1.TestOuterClass
+ .internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_AppEngineVersionEndpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.class,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.Builder
+ .class);
}
- }
- public static final int FORWARDING_RULE_FIELD_NUMBER = 13;
+ public static final int URI_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object forwardingRule_ = "";
- /**
- *
- *
- * - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} - *- * - *
string forwarding_rule = 13;
- *
- * @return The forwardingRule.
- */
- @java.lang.Override
- public java.lang.String getForwardingRule() {
- java.lang.Object ref = forwardingRule_;
- 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();
- forwardingRule_ = s;
- return s;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
}
- }
- /**
- *
- *
- * - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} - *- * - *
string forwarding_rule = 13;
- *
- * @return The bytes for forwardingRule.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getForwardingRuleBytes() {
- java.lang.Object ref = forwardingRule_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- forwardingRule_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
- }
- public static final int GKE_MASTER_CLUSTER_FIELD_NUMBER = 7;
+ private byte memoizedIsInitialized = -1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object gkeMasterCluster_ = "";
- /**
- *
- *
- * - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - *- * - *
string gke_master_cluster = 7;
- *
- * @return The gkeMasterCluster.
- */
- @java.lang.Override
- public java.lang.String getGkeMasterCluster() {
- java.lang.Object ref = gkeMasterCluster_;
- 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();
- gkeMasterCluster_ = s;
- return s;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
}
- }
- /**
- *
- *
- * - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - *- * - *
string gke_master_cluster = 7;
- *
- * @return The bytes for gkeMasterCluster.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getGkeMasterClusterBytes() {
- java.lang.Object ref = gkeMasterCluster_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- gkeMasterCluster_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ getUnknownFields().writeTo(output);
}
- }
- public static final int CLOUD_SQL_INSTANCE_FIELD_NUMBER = 8;
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
- @SuppressWarnings("serial")
- private volatile java.lang.Object cloudSqlInstance_ = "";
- /**
- *
- *
- * - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. - *- * - *
string cloud_sql_instance = 8;
- *
- * @return The cloudSqlInstance.
- */
- @java.lang.Override
- public java.lang.String getCloudSqlInstance() {
- java.lang.Object ref = cloudSqlInstance_;
- 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();
- cloudSqlInstance_ = s;
- return s;
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
}
- }
- /**
- *
- *
- * - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. - *- * - *
string cloud_sql_instance = 8;
- *
- * @return The bytes for cloudSqlInstance.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getCloudSqlInstanceBytes() {
- java.lang.Object ref = cloudSqlInstance_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- cloudSqlInstance_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint other =
+ (com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint) obj;
+
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
- }
- public static final int CLOUD_FUNCTION_FIELD_NUMBER = 10;
- private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloudFunction_;
- /**
- *
- *
- * - * A [Cloud function](https://cloud.google.com/functions). - *- * - *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
- *
- *
- * @return Whether the cloudFunction field is set.
- */
- @java.lang.Override
- public boolean hasCloudFunction() {
- return cloudFunction_ != null;
- }
- /**
- *
- *
- * - * A [Cloud function](https://cloud.google.com/functions). - *- * - *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
- *
- *
- * @return The cloudFunction.
- */
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
- getCloudFunction() {
- return cloudFunction_ == null
- ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
- .getDefaultInstance()
- : cloudFunction_;
- }
- /**
- *
- *
- * - * A [Cloud function](https://cloud.google.com/functions). - *- * - *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
- *
- */
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder
- getCloudFunctionOrBuilder() {
- return cloudFunction_ == null
- ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
- .getDefaultInstance()
- : cloudFunction_;
- }
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
- public static final int NETWORK_FIELD_NUMBER = 4;
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object network_ = "";
- /**
- *
- *
- * - * A Compute Engine network URI. - *- * - *
string network = 4;
- *
- * @return The network.
- */
- @java.lang.Override
- public java.lang.String getNetwork() {
- java.lang.Object ref = network_;
- 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();
- network_ = s;
- return s;
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- }
- /**
- *
- *
- * - * A Compute Engine network URI. - *- * - *
string network = 4;
- *
- * @return The bytes for network.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getNetworkBytes() {
- java.lang.Object ref = network_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- network_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- }
- public static final int NETWORK_TYPE_FIELD_NUMBER = 5;
- private int networkType_ = 0;
- /**
- *
- *
- * - * Type of the network where the endpoint is located. - * Applicable only to source endpoint, as destination network type can be - * inferred from the source. - *- * - *
.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
- *
- * @return The enum numeric value on the wire for networkType.
- */
- @java.lang.Override
- public int getNetworkTypeValue() {
- return networkType_;
- }
- /**
- *
- *
- * - * Type of the network where the endpoint is located. - * Applicable only to source endpoint, as destination network type can be - * inferred from the source. - *- * - *
.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
- *
- * @return The networkType.
- */
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType getNetworkType() {
- com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType result =
- com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType.forNumber(networkType_);
- return result == null
- ? com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType.UNRECOGNIZED
- : result;
- }
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- public static final int PROJECT_ID_FIELD_NUMBER = 6;
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object projectId_ = "";
- /**
- *
- *
- * - * Project ID where the endpoint is located. - * The Project ID can be derived from the URI if you provide a VM instance or - * network URI. - * The following are two cases where you must provide the project ID: - * 1. Only the IP address is specified, and the IP address is within a Google - * Cloud project. - * 2. When you are using Shared VPC and the IP address that you provide is - * from the service project. In this case, the network that the IP address - * resides in is defined in the host project. - *- * - *
string project_id = 6;
- *
- * @return The projectId.
- */
- @java.lang.Override
- public java.lang.String getProjectId() {
- java.lang.Object ref = projectId_;
- 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();
- projectId_ = s;
- return s;
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- }
- /**
- *
- *
- * - * Project ID where the endpoint is located. - * The Project ID can be derived from the URI if you provide a VM instance or - * network URI. - * The following are two cases where you must provide the project ID: - * 1. Only the IP address is specified, and the IP address is within a Google - * Cloud project. - * 2. When you are using Shared VPC and the IP address that you provide is - * from the service project. In this case, the network that the IP address - * resides in is defined in the host project. - *- * - *
string project_id = 6;
- *
- * @return The bytes for projectId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getProjectIdBytes() {
- java.lang.Object ref = projectId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- projectId_ = 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.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_);
- }
- if (port_ != 0) {
- output.writeInt32(2, port_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, network_);
- }
- if (networkType_
- != com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType.NETWORK_TYPE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(5, networkType_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, projectId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeMasterCluster_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gkeMasterCluster_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlInstance_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cloudSqlInstance_);
- }
- if (cloudFunction_ != null) {
- output.writeMessage(10, getCloudFunction());
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 13, forwardingRule_);
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipAddress_);
- }
- if (port_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, network_);
- }
- if (networkType_
- != com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType.NETWORK_TYPE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, networkType_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, projectId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeMasterCluster_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gkeMasterCluster_);
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlInstance_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cloudSqlInstance_);
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- if (cloudFunction_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCloudFunction());
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, forwardingRule_);
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (!(obj instanceof com.google.cloud.networkmanagement.v1beta1.Endpoint)) {
- return super.equals(obj);
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
}
- com.google.cloud.networkmanagement.v1beta1.Endpoint other =
- (com.google.cloud.networkmanagement.v1beta1.Endpoint) obj;
- if (!getIpAddress().equals(other.getIpAddress())) return false;
- if (getPort() != other.getPort()) return false;
- if (!getInstance().equals(other.getInstance())) return false;
- if (!getForwardingRule().equals(other.getForwardingRule())) return false;
- if (!getGkeMasterCluster().equals(other.getGkeMasterCluster())) return false;
- if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false;
- if (hasCloudFunction() != other.hasCloudFunction()) return false;
- if (hasCloudFunction()) {
- if (!getCloudFunction().equals(other.getCloudFunction())) return false;
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
}
- if (!getNetwork().equals(other.getNetwork())) return false;
- if (networkType_ != other.networkType_) return false;
- if (!getProjectId().equals(other.getProjectId())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
+ public static Builder newBuilder(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER;
- hash = (53 * hash) + getIpAddress().hashCode();
- hash = (37 * hash) + PORT_FIELD_NUMBER;
- hash = (53 * hash) + getPort();
- hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
- hash = (53 * hash) + getInstance().hashCode();
- hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER;
- hash = (53 * hash) + getForwardingRule().hashCode();
- hash = (37 * hash) + GKE_MASTER_CLUSTER_FIELD_NUMBER;
- hash = (53 * hash) + getGkeMasterCluster().hashCode();
- hash = (37 * hash) + CLOUD_SQL_INSTANCE_FIELD_NUMBER;
- hash = (53 * hash) + getCloudSqlInstance().hashCode();
- if (hasCloudFunction()) {
- hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER;
- hash = (53 * hash) + getCloudFunction().hashCode();
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
- hash = (37 * hash) + NETWORK_FIELD_NUMBER;
- hash = (53 * hash) + getNetwork().hashCode();
- hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + networkType_;
- hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
- hash = (53 * hash) + getProjectId().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
- public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Wrapper for the App Engine service version attributes. + *+ * + * Protobuf type {@code + * google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
- * Source or destination of the Connectivity Test. - *- * - * Protobuf type {@code google.cloud.networkmanagement.v1beta1.Endpoint} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + *+ * + *
string uri = 1;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint)
+ private static final com.google.cloud.networkmanagement.v1beta1.Endpoint
+ .AppEngineVersionEndpoint
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint();
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+ }
+ /**
+ *
+ *
+ * + * Wrapper for Cloud Run revision attributes. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint} + */ + public static final class CloudRunRevisionEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint) + CloudRunRevisionEndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudRunRevisionEndpoint.newBuilder() to construct. + private CloudRunRevisionEndpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudRunRevisionEndpoint() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudRunRevisionEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_CloudRunRevisionEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_CloudRunRevisionEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.class, + com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.Builder + .class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+ * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = 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.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ 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.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint other =
+ (com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint) obj;
+
+ if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ 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.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ 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.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Wrapper for Cloud Run revision attributes. + *+ * + * Protobuf type {@code + * google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + *+ * + *
string uri = 1;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint)
+ private static final com.google.cloud.networkmanagement.v1beta1.Endpoint
+ .CloudRunRevisionEndpoint
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint();
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return The ipAddress.
+ */
+ @java.lang.Override
+ public java.lang.String getIpAddress() {
+ java.lang.Object ref = ipAddress_;
+ 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();
+ ipAddress_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return The bytes for ipAddress.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIpAddressBytes() {
+ java.lang.Object ref = ipAddress_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ ipAddress_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PORT_FIELD_NUMBER = 2;
+ private int port_ = 0;
+ /**
+ *
+ *
+ * + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + *+ * + *
int32 port = 2;
+ *
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instance_ = "";
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return The instance.
+ */
+ @java.lang.Override
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ 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();
+ instance_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return The bytes for instance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FORWARDING_RULE_FIELD_NUMBER = 13;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object forwardingRule_ = "";
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return The forwardingRule.
+ */
+ @java.lang.Override
+ public java.lang.String getForwardingRule() {
+ java.lang.Object ref = forwardingRule_;
+ 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();
+ forwardingRule_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return The bytes for forwardingRule.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getForwardingRuleBytes() {
+ java.lang.Object ref = forwardingRule_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ forwardingRule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FORWARDING_RULE_TARGET_FIELD_NUMBER = 14;
+ private int forwardingRuleTarget_ = 0;
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardingRuleTarget field is set.
+ */
+ @java.lang.Override
+ public boolean hasForwardingRuleTarget() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for forwardingRuleTarget.
+ */
+ @java.lang.Override
+ public int getForwardingRuleTargetValue() {
+ return forwardingRuleTarget_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardingRuleTarget.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget
+ getForwardingRuleTarget() {
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget result =
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget.forNumber(
+ forwardingRuleTarget_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int LOAD_BALANCER_ID_FIELD_NUMBER = 15;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object loadBalancerId_ = "";
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerId field is set.
+ */
+ @java.lang.Override
+ public boolean hasLoadBalancerId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerId.
+ */
+ @java.lang.Override
+ public java.lang.String getLoadBalancerId() {
+ java.lang.Object ref = loadBalancerId_;
+ 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();
+ loadBalancerId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for loadBalancerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLoadBalancerIdBytes() {
+ java.lang.Object ref = loadBalancerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ loadBalancerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 16;
+ private int loadBalancerType_ = 0;
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerType field is set.
+ */
+ @java.lang.Override
+ public boolean hasLoadBalancerType() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for loadBalancerType.
+ */
+ @java.lang.Override
+ public int getLoadBalancerTypeValue() {
+ return loadBalancerType_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.LoadBalancerType getLoadBalancerType() {
+ com.google.cloud.networkmanagement.v1beta1.LoadBalancerType result =
+ com.google.cloud.networkmanagement.v1beta1.LoadBalancerType.forNumber(loadBalancerType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.LoadBalancerType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int GKE_MASTER_CLUSTER_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gkeMasterCluster_ = "";
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return The gkeMasterCluster.
+ */
+ @java.lang.Override
+ public java.lang.String getGkeMasterCluster() {
+ java.lang.Object ref = gkeMasterCluster_;
+ 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();
+ gkeMasterCluster_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return The bytes for gkeMasterCluster.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGkeMasterClusterBytes() {
+ java.lang.Object ref = gkeMasterCluster_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gkeMasterCluster_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLOUD_SQL_INSTANCE_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object cloudSqlInstance_ = "";
+ /**
+ *
+ *
+ * + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + *+ * + *
string cloud_sql_instance = 8;
+ *
+ * @return The cloudSqlInstance.
+ */
+ @java.lang.Override
+ public java.lang.String getCloudSqlInstance() {
+ java.lang.Object ref = cloudSqlInstance_;
+ 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();
+ cloudSqlInstance_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + *+ * + *
string cloud_sql_instance = 8;
+ *
+ * @return The bytes for cloudSqlInstance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCloudSqlInstanceBytes() {
+ java.lang.Object ref = cloudSqlInstance_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ cloudSqlInstance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLOUD_FUNCTION_FIELD_NUMBER = 10;
+ private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloudFunction_;
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return Whether the cloudFunction field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudFunction() {
+ return cloudFunction_ != null;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return The cloudFunction.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ getCloudFunction() {
+ return cloudFunction_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder
+ getCloudFunctionOrBuilder() {
+ return cloudFunction_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
+ }
+
+ public static final int APP_ENGINE_VERSION_FIELD_NUMBER = 11;
+ private com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ appEngineVersion_;
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasAppEngineVersion() {
+ return appEngineVersion_ != null;
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ getAppEngineVersion() {
+ return appEngineVersion_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ }
+ /**
+ *
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpointOrBuilder
+ getAppEngineVersionOrBuilder() {
+ return appEngineVersion_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ }
+
+ public static final int CLOUD_RUN_REVISION_FIELD_NUMBER = 12;
+ private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ cloudRunRevision_;
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudRunRevision() {
+ return cloudRunRevision_ != null;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ getCloudRunRevision() {
+ return cloudRunRevision_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()
+ : cloudRunRevision_;
+ }
+ /**
+ *
+ *
+ * + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ return cloudRunRevision_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()
+ : cloudRunRevision_;
+ }
+
+ public static final int NETWORK_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object network_ = "";
+ /**
+ *
+ *
+ * + * A Compute Engine network URI. + *+ * + *
string network = 4;
+ *
+ * @return The network.
+ */
+ @java.lang.Override
+ public java.lang.String getNetwork() {
+ java.lang.Object ref = network_;
+ 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();
+ network_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine network URI. + *+ * + *
string network = 4;
+ *
+ * @return The bytes for network.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNetworkBytes() {
+ java.lang.Object ref = network_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ network_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NETWORK_TYPE_FIELD_NUMBER = 5;
+ private int networkType_ = 0;
+ /**
+ *
+ *
+ * + * Type of the network where the endpoint is located. + * Applicable only to source endpoint, as destination network type can be + * inferred from the source. + *+ * + *
.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return The enum numeric value on the wire for networkType.
+ */
+ @java.lang.Override
+ public int getNetworkTypeValue() {
+ return networkType_;
+ }
+ /**
+ *
+ *
+ * + * Type of the network where the endpoint is located. + * Applicable only to source endpoint, as destination network type can be + * inferred from the source. + *+ * + *
.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return The networkType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType getNetworkType() {
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType result =
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType.forNumber(networkType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int PROJECT_ID_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Project ID where the endpoint is located. + * The Project ID can be derived from the URI if you provide a VM instance or + * network URI. + * The following are two cases where you must provide the project ID: + * 1. Only the IP address is specified, and the IP address is within a Google + * Cloud project. + * 2. When you are using Shared VPC and the IP address that you provide is + * from the service project. In this case, the network that the IP address + * resides in is defined in the host project. + *+ * + *
string project_id = 6;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Project ID where the endpoint is located. + * The Project ID can be derived from the URI if you provide a VM instance or + * network URI. + * The following are two cases where you must provide the project ID: + * 1. Only the IP address is specified, and the IP address is within a Google + * Cloud project. + * 2. When you are using Shared VPC and the IP address that you provide is + * from the service project. In this case, the network that the IP address + * resides in is defined in the host project. + *+ * + *
string project_id = 6;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = 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.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(2, port_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, network_);
+ }
+ if (networkType_
+ != com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType.NETWORK_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(5, networkType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeMasterCluster_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gkeMasterCluster_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlInstance_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cloudSqlInstance_);
+ }
+ if (cloudFunction_ != null) {
+ output.writeMessage(10, getCloudFunction());
+ }
+ if (appEngineVersion_ != null) {
+ output.writeMessage(11, getAppEngineVersion());
+ }
+ if (cloudRunRevision_ != null) {
+ output.writeMessage(12, getCloudRunRevision());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, forwardingRule_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(14, forwardingRuleTarget_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, loadBalancerId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(16, loadBalancerType_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipAddress_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, network_);
+ }
+ if (networkType_
+ != com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType.NETWORK_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, networkType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeMasterCluster_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gkeMasterCluster_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlInstance_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cloudSqlInstance_);
+ }
+ if (cloudFunction_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCloudFunction());
+ }
+ if (appEngineVersion_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAppEngineVersion());
+ }
+ if (cloudRunRevision_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCloudRunRevision());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, forwardingRule_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, forwardingRuleTarget_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, loadBalancerId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, loadBalancerType_);
+ }
+ 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.networkmanagement.v1beta1.Endpoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1beta1.Endpoint other =
+ (com.google.cloud.networkmanagement.v1beta1.Endpoint) obj;
+
+ if (!getIpAddress().equals(other.getIpAddress())) return false;
+ if (getPort() != other.getPort()) return false;
+ if (!getInstance().equals(other.getInstance())) return false;
+ if (!getForwardingRule().equals(other.getForwardingRule())) return false;
+ if (hasForwardingRuleTarget() != other.hasForwardingRuleTarget()) return false;
+ if (hasForwardingRuleTarget()) {
+ if (forwardingRuleTarget_ != other.forwardingRuleTarget_) return false;
+ }
+ if (hasLoadBalancerId() != other.hasLoadBalancerId()) return false;
+ if (hasLoadBalancerId()) {
+ if (!getLoadBalancerId().equals(other.getLoadBalancerId())) return false;
+ }
+ if (hasLoadBalancerType() != other.hasLoadBalancerType()) return false;
+ if (hasLoadBalancerType()) {
+ if (loadBalancerType_ != other.loadBalancerType_) return false;
+ }
+ if (!getGkeMasterCluster().equals(other.getGkeMasterCluster())) return false;
+ if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false;
+ if (hasCloudFunction() != other.hasCloudFunction()) return false;
+ if (hasCloudFunction()) {
+ if (!getCloudFunction().equals(other.getCloudFunction())) return false;
+ }
+ if (hasAppEngineVersion() != other.hasAppEngineVersion()) return false;
+ if (hasAppEngineVersion()) {
+ if (!getAppEngineVersion().equals(other.getAppEngineVersion())) return false;
+ }
+ if (hasCloudRunRevision() != other.hasCloudRunRevision()) return false;
+ if (hasCloudRunRevision()) {
+ if (!getCloudRunRevision().equals(other.getCloudRunRevision())) return false;
+ }
+ if (!getNetwork().equals(other.getNetwork())) return false;
+ if (networkType_ != other.networkType_) return false;
+ if (!getProjectId().equals(other.getProjectId())) 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) + IP_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getIpAddress().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER;
+ hash = (53 * hash) + getForwardingRule().hashCode();
+ if (hasForwardingRuleTarget()) {
+ hash = (37 * hash) + FORWARDING_RULE_TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + forwardingRuleTarget_;
+ }
+ if (hasLoadBalancerId()) {
+ hash = (37 * hash) + LOAD_BALANCER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getLoadBalancerId().hashCode();
+ }
+ if (hasLoadBalancerType()) {
+ hash = (37 * hash) + LOAD_BALANCER_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + loadBalancerType_;
+ }
+ hash = (37 * hash) + GKE_MASTER_CLUSTER_FIELD_NUMBER;
+ hash = (53 * hash) + getGkeMasterCluster().hashCode();
+ hash = (37 * hash) + CLOUD_SQL_INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudSqlInstance().hashCode();
+ if (hasCloudFunction()) {
+ hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudFunction().hashCode();
+ }
+ if (hasAppEngineVersion()) {
+ hash = (37 * hash) + APP_ENGINE_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getAppEngineVersion().hashCode();
+ }
+ if (hasCloudRunRevision()) {
+ hash = (37 * hash) + CLOUD_RUN_REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudRunRevision().hashCode();
+ }
+ hash = (37 * hash) + NETWORK_FIELD_NUMBER;
+ hash = (53 * hash) + getNetwork().hashCode();
+ hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + networkType_;
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint 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.networkmanagement.v1beta1.Endpoint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint 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.networkmanagement.v1beta1.Endpoint parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.Endpoint parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.Endpoint 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Source or destination of the Connectivity Test. + *+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.Endpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return The ipAddress.
+ */
+ public java.lang.String getIpAddress() {
+ java.lang.Object ref = ipAddress_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ipAddress_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return The bytes for ipAddress.
+ */
+ public com.google.protobuf.ByteString getIpAddressBytes() {
+ java.lang.Object ref = ipAddress_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ ipAddress_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @param value The ipAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIpAddress(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ipAddress_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIpAddress() {
+ ipAddress_ = getDefaultInstance().getIpAddress();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The IP address of the endpoint, which can be an external or internal IP. + * An IPv6 address is only allowed when the test's destination is a + * [global load balancer + * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + *+ * + *
string ip_address = 1;
+ *
+ * @param value The bytes for ipAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ipAddress_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int port_;
+ /**
+ *
+ *
+ * + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + *+ * + *
int32 port = 2;
+ *
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+ /**
+ *
+ *
+ * + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + *+ * + *
int32 port = 2;
+ *
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + *+ * + *
int32 port = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instance_ = "";
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return The instance.
+ */
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instance_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return The bytes for instance.
+ */
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- ipAddress_ = "";
- port_ = 0;
- instance_ = "";
- forwardingRule_ = "";
- gkeMasterCluster_ = "";
- cloudSqlInstance_ = "";
- cloudFunction_ = null;
- if (cloudFunctionBuilder_ != null) {
- cloudFunctionBuilder_.dispose();
- cloudFunctionBuilder_ = null;
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @param value The instance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstance(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- network_ = "";
- networkType_ = 0;
- projectId_ = "";
+ instance_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.networkmanagement.v1beta1.TestOuterClass
- .internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_descriptor;
- }
-
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.Endpoint getDefaultInstanceForType() {
- return com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance();
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstance() {
+ instance_ = getDefaultInstance().getInstance();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
}
-
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.Endpoint build() {
- com.google.cloud.networkmanagement.v1beta1.Endpoint result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
+ /**
+ *
+ *
+ * + * A Compute Engine instance URI. + *+ * + *
string instance = 3;
+ *
+ * @param value The bytes for instance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- return result;
+ checkByteStringIsUtf8(value);
+ instance_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
}
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.Endpoint buildPartial() {
- com.google.cloud.networkmanagement.v1beta1.Endpoint result =
- new com.google.cloud.networkmanagement.v1beta1.Endpoint(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ private java.lang.Object forwardingRule_ = "";
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return The forwardingRule.
+ */
+ public java.lang.String getForwardingRule() {
+ java.lang.Object ref = forwardingRule_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ forwardingRule_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
}
- onBuilt();
- return result;
}
-
- private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.Endpoint result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.ipAddress_ = ipAddress_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.port_ = port_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.instance_ = instance_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.forwardingRule_ = forwardingRule_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.gkeMasterCluster_ = gkeMasterCluster_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.cloudSqlInstance_ = cloudSqlInstance_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.cloudFunction_ =
- cloudFunctionBuilder_ == null ? cloudFunction_ : cloudFunctionBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.network_ = network_;
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return The bytes for forwardingRule.
+ */
+ public com.google.protobuf.ByteString getForwardingRuleBytes() {
+ java.lang.Object ref = forwardingRule_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ forwardingRule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.networkType_ = networkType_;
+ }
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @param value The forwardingRule to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForwardingRule(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.projectId_ = projectId_;
+ forwardingRule_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearForwardingRule() {
+ forwardingRule_ = getDefaultInstance().getForwardingRule();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Format: + * projects/{project}/global/forwardingRules/{id} or + * projects/{project}/regions/{region}/forwardingRules/{id} + *+ * + *
string forwarding_rule = 13;
+ *
+ * @param value The bytes for forwardingRule to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ checkByteStringIsUtf8(value);
+ forwardingRule_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
}
+ private int forwardingRuleTarget_ = 0;
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardingRuleTarget field is set.
+ */
@java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
+ public boolean hasForwardingRuleTarget() {
+ return ((bitField0_ & 0x00000010) != 0);
}
-
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for forwardingRuleTarget.
+ */
@java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
+ public int getForwardingRuleTargetValue() {
+ return forwardingRuleTarget_;
}
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for forwardingRuleTarget to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForwardingRuleTargetValue(int value) {
+ forwardingRuleTarget_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
}
-
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardingRuleTarget.
+ */
@java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.networkmanagement.v1beta1.Endpoint) {
- return mergeFrom((com.google.cloud.networkmanagement.v1beta1.Endpoint) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget
+ getForwardingRuleTarget() {
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget result =
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget.forNumber(
+ forwardingRuleTarget_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget.UNRECOGNIZED
+ : result;
}
-
- public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint other) {
- if (other == com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance())
- return this;
- if (!other.getIpAddress().isEmpty()) {
- ipAddress_ = other.ipAddress_;
- bitField0_ |= 0x00000001;
- onChanged();
- }
- if (other.getPort() != 0) {
- setPort(other.getPort());
- }
- if (!other.getInstance().isEmpty()) {
- instance_ = other.instance_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (!other.getForwardingRule().isEmpty()) {
- forwardingRule_ = other.forwardingRule_;
- bitField0_ |= 0x00000008;
- onChanged();
- }
- if (!other.getGkeMasterCluster().isEmpty()) {
- gkeMasterCluster_ = other.gkeMasterCluster_;
- bitField0_ |= 0x00000010;
- onChanged();
- }
- if (!other.getCloudSqlInstance().isEmpty()) {
- cloudSqlInstance_ = other.cloudSqlInstance_;
- bitField0_ |= 0x00000020;
- onChanged();
- }
- if (other.hasCloudFunction()) {
- mergeCloudFunction(other.getCloudFunction());
- }
- if (!other.getNetwork().isEmpty()) {
- network_ = other.network_;
- bitField0_ |= 0x00000080;
- onChanged();
- }
- if (other.networkType_ != 0) {
- setNetworkTypeValue(other.getNetworkTypeValue());
- }
- if (!other.getProjectId().isEmpty()) {
- projectId_ = other.projectId_;
- bitField0_ |= 0x00000200;
- onChanged();
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The forwardingRuleTarget to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForwardingRuleTarget(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ bitField0_ |= 0x00000010;
+ forwardingRuleTarget_ = value.getNumber();
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:
- {
- ipAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16:
- {
- port_ = input.readInt32();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 26:
- {
- instance_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34:
- {
- network_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000080;
- break;
- } // case 34
- case 40:
- {
- networkType_ = input.readEnum();
- bitField0_ |= 0x00000100;
- break;
- } // case 40
- case 50:
- {
- projectId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000200;
- break;
- } // case 50
- case 58:
- {
- gkeMasterCluster_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
- break;
- } // case 58
- case 66:
- {
- cloudSqlInstance_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 66
- case 82:
- {
- input.readMessage(getCloudFunctionFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
- break;
- } // case 82
- case 106:
- {
- forwardingRule_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 106
- 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
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearForwardingRuleTarget() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ forwardingRuleTarget_ = 0;
+ onChanged();
return this;
}
- private int bitField0_;
-
- private java.lang.Object ipAddress_ = "";
+ private java.lang.Object loadBalancerId_ = "";
/**
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer - * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. ** - *
string ip_address = 1;
+ * optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The ipAddress.
+ * @return Whether the loadBalancerId field is set.
*/
- public java.lang.String getIpAddress() {
- java.lang.Object ref = ipAddress_;
+ public boolean hasLoadBalancerId() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerId.
+ */
+ public java.lang.String getLoadBalancerId() {
+ java.lang.Object ref = loadBalancerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- ipAddress_ = s;
+ loadBalancerId_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -2009,22 +4627,21 @@ public java.lang.String getIpAddress() {
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer - * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. ** - *
string ip_address = 1;
+ * optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The bytes for ipAddress.
+ * @return The bytes for loadBalancerId.
*/
- public com.google.protobuf.ByteString getIpAddressBytes() {
- java.lang.Object ref = ipAddress_;
+ public com.google.protobuf.ByteString getLoadBalancerIdBytes() {
+ java.lang.Object ref = loadBalancerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- ipAddress_ = b;
+ loadBalancerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -2034,23 +4651,22 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer - * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. ** - *
string ip_address = 1;
+ * optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The ipAddress to set.
+ * @param value The loadBalancerId to set.
* @return This builder for chaining.
*/
- public Builder setIpAddress(java.lang.String value) {
+ public Builder setLoadBalancerId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ipAddress_ = value;
- bitField0_ |= 0x00000001;
+ loadBalancerId_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2058,19 +4674,18 @@ public Builder setIpAddress(java.lang.String value) {
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer - * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. ** - *
string ip_address = 1;
+ * optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return This builder for chaining.
*/
- public Builder clearIpAddress() {
- ipAddress_ = getDefaultInstance().getIpAddress();
- bitField0_ = (bitField0_ & ~0x00000001);
+ public Builder clearLoadBalancerId() {
+ loadBalancerId_ = getDefaultInstance().getLoadBalancerId();
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -2078,62 +4693,213 @@ public Builder clearIpAddress() {
*
*
* - * The IP address of the endpoint, which can be an external or internal IP. - * An IPv6 address is only allowed when the test's destination is a - * [global load balancer - * VIP](https://cloud.google.com/load-balancing/docs/load-balancing-overview). + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. ** - *
string ip_address = 1;
+ * optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The bytes for ipAddress to set.
+ * @param value The bytes for loadBalancerId to set.
* @return This builder for chaining.
*/
- public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
+ public Builder setLoadBalancerIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- ipAddress_ = value;
- bitField0_ |= 0x00000001;
+ loadBalancerId_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
- private int port_;
+ private int loadBalancerType_ = 0;
/**
*
*
* - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. + * Output only. Type of the load balancer the forwarding rule points to. ** - *
int32 port = 2;
+ *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The port.
+ * @return Whether the loadBalancerType field is set.
*/
@java.lang.Override
- public int getPort() {
- return port_;
+ public boolean hasLoadBalancerType() {
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
* - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. + * Output only. Type of the load balancer the forwarding rule points to. ** - *
int32 port = 2;
+ *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The port to set.
+ * @return The enum numeric value on the wire for loadBalancerType.
+ */
+ @java.lang.Override
+ public int getLoadBalancerTypeValue() {
+ return loadBalancerType_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for loadBalancerType to set.
* @return This builder for chaining.
*/
- public Builder setPort(int value) {
+ public Builder setLoadBalancerTypeValue(int value) {
+ loadBalancerType_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.LoadBalancerType getLoadBalancerType() {
+ com.google.cloud.networkmanagement.v1beta1.LoadBalancerType result =
+ com.google.cloud.networkmanagement.v1beta1.LoadBalancerType.forNumber(loadBalancerType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.LoadBalancerType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The loadBalancerType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoadBalancerType(
+ com.google.cloud.networkmanagement.v1beta1.LoadBalancerType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ loadBalancerType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLoadBalancerType() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ loadBalancerType_ = 0;
+ onChanged();
+ return this;
+ }
- port_ = value;
- bitField0_ |= 0x00000002;
+ private java.lang.Object gkeMasterCluster_ = "";
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return The gkeMasterCluster.
+ */
+ public java.lang.String getGkeMasterCluster() {
+ java.lang.Object ref = gkeMasterCluster_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gkeMasterCluster_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @return The bytes for gkeMasterCluster.
+ */
+ public com.google.protobuf.ByteString getGkeMasterClusterBytes() {
+ java.lang.Object ref = gkeMasterCluster_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gkeMasterCluster_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @param value The gkeMasterCluster to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGkeMasterCluster(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gkeMasterCluster_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2141,39 +4907,62 @@ public Builder setPort(int value) {
*
*
* - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). ** - *
int32 port = 2;
+ * string gke_master_cluster = 7;
*
* @return This builder for chaining.
*/
- public Builder clearPort() {
- bitField0_ = (bitField0_ & ~0x00000002);
- port_ = 0;
+ public Builder clearGkeMasterCluster() {
+ gkeMasterCluster_ = getDefaultInstance().getGkeMasterCluster();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A cluster URI for [Google Kubernetes Engine + * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + *+ * + *
string gke_master_cluster = 7;
+ *
+ * @param value The bytes for gkeMasterCluster to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGkeMasterClusterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ gkeMasterCluster_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
- private java.lang.Object instance_ = "";
+ private java.lang.Object cloudSqlInstance_ = "";
/**
*
*
* - * A Compute Engine instance URI. + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string instance = 3;
+ * string cloud_sql_instance = 8;
*
- * @return The instance.
+ * @return The cloudSqlInstance.
*/
- public java.lang.String getInstance() {
- java.lang.Object ref = instance_;
+ public java.lang.String getCloudSqlInstance() {
+ java.lang.Object ref = cloudSqlInstance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- instance_ = s;
+ cloudSqlInstance_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -2183,19 +4972,19 @@ public java.lang.String getInstance() {
*
*
* - * A Compute Engine instance URI. + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string instance = 3;
+ * string cloud_sql_instance = 8;
*
- * @return The bytes for instance.
+ * @return The bytes for cloudSqlInstance.
*/
- public com.google.protobuf.ByteString getInstanceBytes() {
- java.lang.Object ref = instance_;
+ public com.google.protobuf.ByteString getCloudSqlInstanceBytes() {
+ java.lang.Object ref = cloudSqlInstance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- instance_ = b;
+ cloudSqlInstance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -2205,20 +4994,20 @@ public com.google.protobuf.ByteString getInstanceBytes() {
*
*
* - * A Compute Engine instance URI. + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string instance = 3;
+ * string cloud_sql_instance = 8;
*
- * @param value The instance to set.
+ * @param value The cloudSqlInstance to set.
* @return This builder for chaining.
*/
- public Builder setInstance(java.lang.String value) {
+ public Builder setCloudSqlInstance(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- instance_ = value;
- bitField0_ |= 0x00000004;
+ cloudSqlInstance_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2226,16 +5015,16 @@ public Builder setInstance(java.lang.String value) {
*
*
* - * A Compute Engine instance URI. + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string instance = 3;
+ * string cloud_sql_instance = 8;
*
* @return This builder for chaining.
*/
- public Builder clearInstance() {
- instance_ = getDefaultInstance().getInstance();
- bitField0_ = (bitField0_ & ~0x00000004);
+ public Builder clearCloudSqlInstance() {
+ cloudSqlInstance_ = getDefaultInstance().getCloudSqlInstance();
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -2243,103 +5032,94 @@ public Builder clearInstance() {
*
*
* - * A Compute Engine instance URI. + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. ** - *
string instance = 3;
+ * string cloud_sql_instance = 8;
*
- * @param value The bytes for instance to set.
+ * @param value The bytes for cloudSqlInstance to set.
* @return This builder for chaining.
*/
- public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
+ public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- instance_ = value;
- bitField0_ |= 0x00000004;
+ cloudSqlInstance_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
- private java.lang.Object forwardingRule_ = "";
+ private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ cloudFunction_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder>
+ cloudFunctionBuilder_;
/**
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string forwarding_rule = 13;
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*
- * @return The forwardingRule.
+ * @return Whether the cloudFunction field is set.
*/
- public java.lang.String getForwardingRule() {
- java.lang.Object ref = forwardingRule_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- forwardingRule_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public boolean hasCloudFunction() {
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string forwarding_rule = 13;
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*
- * @return The bytes for forwardingRule.
+ * @return The cloudFunction.
*/
- public com.google.protobuf.ByteString getForwardingRuleBytes() {
- java.lang.Object ref = forwardingRule_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- forwardingRule_ = b;
- return b;
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ getCloudFunction() {
+ if (cloudFunctionBuilder_ == null) {
+ return cloudFunction_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
} else {
- return (com.google.protobuf.ByteString) ref;
+ return cloudFunctionBuilder_.getMessage();
}
}
/**
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string forwarding_rule = 13;
- *
- * @param value The forwardingRule to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public Builder setForwardingRule(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setCloudFunction(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint value) {
+ if (cloudFunctionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cloudFunction_ = value;
+ } else {
+ cloudFunctionBuilder_.setMessage(value);
}
- forwardingRule_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -2347,21 +5127,22 @@ public Builder setForwardingRule(java.lang.String value) {
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string forwarding_rule = 13;
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public Builder clearForwardingRule() {
- forwardingRule_ = getDefaultInstance().getForwardingRule();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public Builder setCloudFunction(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder
+ builderForValue) {
+ if (cloudFunctionBuilder_ == null) {
+ cloudFunction_ = builderForValue.build();
+ } else {
+ cloudFunctionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -2369,204 +5150,269 @@ public Builder clearForwardingRule() {
*
*
* - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string forwarding_rule = 13;
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public Builder mergeCloudFunction(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint value) {
+ if (cloudFunctionBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)
+ && cloudFunction_ != null
+ && cloudFunction_
+ != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()) {
+ getCloudFunctionBuilder().mergeFrom(value);
+ } else {
+ cloudFunction_ = value;
+ }
+ } else {
+ cloudFunctionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
*
- * @param value The bytes for forwardingRule to set.
- * @return This builder for chaining.
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearCloudFunction() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ cloudFunction_ = null;
+ if (cloudFunctionBuilder_ != null) {
+ cloudFunctionBuilder_.dispose();
+ cloudFunctionBuilder_ = null;
}
- checkByteStringIsUtf8(value);
- forwardingRule_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
-
- private java.lang.Object gkeMasterCluster_ = "";
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string gke_master_cluster = 7;
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder
+ getCloudFunctionBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getCloudFunctionFieldBuilder().getBuilder();
+ }
+ /**
*
- * @return The gkeMasterCluster.
+ *
+ * + * A [Cloud Function](https://cloud.google.com/functions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public java.lang.String getGkeMasterCluster() {
- java.lang.Object ref = gkeMasterCluster_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- gkeMasterCluster_ = s;
- return s;
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder
+ getCloudFunctionOrBuilder() {
+ if (cloudFunctionBuilder_ != null) {
+ return cloudFunctionBuilder_.getMessageOrBuilder();
} else {
- return (java.lang.String) ref;
+ return cloudFunction_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
}
}
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * A [Cloud Function](https://cloud.google.com/functions). ** - *
string gke_master_cluster = 7;
- *
- * @return The bytes for gkeMasterCluster.
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
*/
- public com.google.protobuf.ByteString getGkeMasterClusterBytes() {
- java.lang.Object ref = gkeMasterCluster_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- gkeMasterCluster_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder>
+ getCloudFunctionFieldBuilder() {
+ if (cloudFunctionBuilder_ == null) {
+ cloudFunctionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder>(
+ getCloudFunction(), getParentForChildren(), isClean());
+ cloudFunction_ = null;
}
+ return cloudFunctionBuilder_;
}
+
+ private com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ appEngineVersion_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpointOrBuilder>
+ appEngineVersionBuilder_;
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string gke_master_cluster = 7;
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*
- * @param value The gkeMasterCluster to set.
- * @return This builder for chaining.
+ * @return Whether the appEngineVersion field is set.
*/
- public Builder setGkeMasterCluster(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- gkeMasterCluster_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
+ public boolean hasAppEngineVersion() {
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string gke_master_cluster = 7;
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*
- * @return This builder for chaining.
+ * @return The appEngineVersion.
*/
- public Builder clearGkeMasterCluster() {
- gkeMasterCluster_ = getDefaultInstance().getGkeMasterCluster();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ getAppEngineVersion() {
+ if (appEngineVersionBuilder_ == null) {
+ return appEngineVersion_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ } else {
+ return appEngineVersionBuilder_.getMessage();
+ }
}
/**
*
*
* - * A cluster URI for [Google Kubernetes Engine - * master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string gke_master_cluster = 7;
- *
- * @param value The bytes for gkeMasterCluster to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public Builder setGkeMasterClusterBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setAppEngineVersion(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ appEngineVersion_ = value;
+ } else {
+ appEngineVersionBuilder_.setMessage(value);
}
- checkByteStringIsUtf8(value);
- gkeMasterCluster_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
-
- private java.lang.Object cloudSqlInstance_ = "";
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string cloud_sql_instance = 8;
- *
- * @return The cloudSqlInstance.
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public java.lang.String getCloudSqlInstance() {
- java.lang.Object ref = cloudSqlInstance_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- cloudSqlInstance_ = s;
- return s;
+ public Builder setAppEngineVersion(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.Builder
+ builderForValue) {
+ if (appEngineVersionBuilder_ == null) {
+ appEngineVersion_ = builderForValue.build();
} else {
- return (java.lang.String) ref;
+ appEngineVersionBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
}
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string cloud_sql_instance = 8;
- *
- * @return The bytes for cloudSqlInstance.
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public com.google.protobuf.ByteString getCloudSqlInstanceBytes() {
- java.lang.Object ref = cloudSqlInstance_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- cloudSqlInstance_ = b;
- return b;
+ public Builder mergeAppEngineVersion(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0)
+ && appEngineVersion_ != null
+ && appEngineVersion_
+ != com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()) {
+ getAppEngineVersionBuilder().mergeFrom(value);
+ } else {
+ appEngineVersion_ = value;
+ }
} else {
- return (com.google.protobuf.ByteString) ref;
+ appEngineVersionBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
}
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string cloud_sql_instance = 8;
- *
- * @param value The cloudSqlInstance to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public Builder setCloudSqlInstance(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearAppEngineVersion() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ appEngineVersion_ = null;
+ if (appEngineVersionBuilder_ != null) {
+ appEngineVersionBuilder_.dispose();
+ appEngineVersionBuilder_ = null;
}
- cloudSqlInstance_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2574,111 +5420,146 @@ public Builder setCloudSqlInstance(java.lang.String value) {
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string cloud_sql_instance = 8;
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public Builder clearCloudSqlInstance() {
- cloudSqlInstance_ = getDefaultInstance().getCloudSqlInstance();
- bitField0_ = (bitField0_ & ~0x00000020);
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.Builder
+ getAppEngineVersionBuilder() {
+ bitField0_ |= 0x00000400;
onChanged();
- return this;
+ return getAppEngineVersionFieldBuilder().getBuilder();
}
/**
*
*
* - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). ** - *
string cloud_sql_instance = 8;
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpointOrBuilder
+ getAppEngineVersionOrBuilder() {
+ if (appEngineVersionBuilder_ != null) {
+ return appEngineVersionBuilder_.getMessageOrBuilder();
+ } else {
+ return appEngineVersion_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ }
+ }
+ /**
*
- * @param value The bytes for cloudSqlInstance to set.
- * @return This builder for chaining.
+ *
+ * + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + *+ * + *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
*/
- public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpointOrBuilder>
+ getAppEngineVersionFieldBuilder() {
+ if (appEngineVersionBuilder_ == null) {
+ appEngineVersionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ .Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint
+ .AppEngineVersionEndpointOrBuilder>(
+ getAppEngineVersion(), getParentForChildren(), isClean());
+ appEngineVersion_ = null;
}
- checkByteStringIsUtf8(value);
- cloudSqlInstance_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
+ return appEngineVersionBuilder_;
}
- private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
- cloudFunction_;
+ private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ cloudRunRevision_;
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint,
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder,
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder>
- cloudFunctionBuilder_;
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpointOrBuilder>
+ cloudRunRevisionBuilder_;
/**
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*
- * @return Whether the cloudFunction field is set.
+ * @return Whether the cloudRunRevision field is set.
*/
- public boolean hasCloudFunction() {
- return ((bitField0_ & 0x00000040) != 0);
+ public boolean hasCloudRunRevision() {
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*
- * @return The cloudFunction.
+ * @return The cloudRunRevision.
*/
- public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
- getCloudFunction() {
- if (cloudFunctionBuilder_ == null) {
- return cloudFunction_ == null
- ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ getCloudRunRevision() {
+ if (cloudRunRevisionBuilder_ == null) {
+ return cloudRunRevision_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
.getDefaultInstance()
- : cloudFunction_;
+ : cloudRunRevision_;
} else {
- return cloudFunctionBuilder_.getMessage();
+ return cloudRunRevisionBuilder_.getMessage();
}
}
/**
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*/
- public Builder setCloudFunction(
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint value) {
- if (cloudFunctionBuilder_ == null) {
+ public Builder setCloudRunRevision(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint value) {
+ if (cloudRunRevisionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- cloudFunction_ = value;
+ cloudRunRevision_ = value;
} else {
- cloudFunctionBuilder_.setMessage(value);
+ cloudRunRevisionBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2686,22 +5567,23 @@ public Builder setCloudFunction(
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*/
- public Builder setCloudFunction(
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder
+ public Builder setCloudRunRevision(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.Builder
builderForValue) {
- if (cloudFunctionBuilder_ == null) {
- cloudFunction_ = builderForValue.build();
+ if (cloudRunRevisionBuilder_ == null) {
+ cloudRunRevision_ = builderForValue.build();
} else {
- cloudFunctionBuilder_.setMessage(builderForValue.build());
+ cloudRunRevisionBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2709,29 +5591,30 @@ public Builder setCloudFunction(
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*/
- public Builder mergeCloudFunction(
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint value) {
- if (cloudFunctionBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
- && cloudFunction_ != null
- && cloudFunction_
- != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ public Builder mergeCloudRunRevision(
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (((bitField0_ & 0x00000800) != 0)
+ && cloudRunRevision_ != null
+ && cloudRunRevision_
+ != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
.getDefaultInstance()) {
- getCloudFunctionBuilder().mergeFrom(value);
+ getCloudRunRevisionBuilder().mergeFrom(value);
} else {
- cloudFunction_ = value;
+ cloudRunRevision_ = value;
}
} else {
- cloudFunctionBuilder_.mergeFrom(value);
+ cloudRunRevisionBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2739,19 +5622,20 @@ public Builder mergeCloudFunction(
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*/
- public Builder clearCloudFunction() {
- bitField0_ = (bitField0_ & ~0x00000040);
- cloudFunction_ = null;
- if (cloudFunctionBuilder_ != null) {
- cloudFunctionBuilder_.dispose();
- cloudFunctionBuilder_ = null;
+ public Builder clearCloudRunRevision() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ cloudRunRevision_ = null;
+ if (cloudRunRevisionBuilder_ != null) {
+ cloudRunRevisionBuilder_.dispose();
+ cloudRunRevisionBuilder_ = null;
}
onChanged();
return this;
@@ -2760,67 +5644,72 @@ public Builder clearCloudFunction() {
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*/
- public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder
- getCloudFunctionBuilder() {
- bitField0_ |= 0x00000040;
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.Builder
+ getCloudRunRevisionBuilder() {
+ bitField0_ |= 0x00000800;
onChanged();
- return getCloudFunctionFieldBuilder().getBuilder();
+ return getCloudRunRevisionFieldBuilder().getBuilder();
}
/**
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*/
- public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder
- getCloudFunctionOrBuilder() {
- if (cloudFunctionBuilder_ != null) {
- return cloudFunctionBuilder_.getMessageOrBuilder();
+ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ if (cloudRunRevisionBuilder_ != null) {
+ return cloudRunRevisionBuilder_.getMessageOrBuilder();
} else {
- return cloudFunction_ == null
- ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint
+ return cloudRunRevision_ == null
+ ? com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
.getDefaultInstance()
- : cloudFunction_;
+ : cloudRunRevision_;
}
}
/**
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) ** *
- * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint,
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder,
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder>
- getCloudFunctionFieldBuilder() {
- if (cloudFunctionBuilder_ == null) {
- cloudFunctionBuilder_ =
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpointOrBuilder>
+ getCloudRunRevisionFieldBuilder() {
+ if (cloudRunRevisionBuilder_ == null) {
+ cloudRunRevisionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint,
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder,
- com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder>(
- getCloudFunction(), getParentForChildren(), isClean());
- cloudFunction_ = null;
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ .Builder,
+ com.google.cloud.networkmanagement.v1beta1.Endpoint
+ .CloudRunRevisionEndpointOrBuilder>(
+ getCloudRunRevision(), getParentForChildren(), isClean());
+ cloudRunRevision_ = null;
}
- return cloudFunctionBuilder_;
+ return cloudRunRevisionBuilder_;
}
private java.lang.Object network_ = "";
@@ -2885,7 +5774,7 @@ public Builder setNetwork(java.lang.String value) {
throw new NullPointerException();
}
network_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -2902,7 +5791,7 @@ public Builder setNetwork(java.lang.String value) {
*/
public Builder clearNetwork() {
network_ = getDefaultInstance().getNetwork();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
@@ -2924,7 +5813,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
network_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -2963,7 +5852,7 @@ public int getNetworkTypeValue() {
*/
public Builder setNetworkTypeValue(int value) {
networkType_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -3007,7 +5896,7 @@ public Builder setNetworkType(
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00002000;
networkType_ = value.getNumber();
onChanged();
return this;
@@ -3026,7 +5915,7 @@ public Builder setNetworkType(
* @return This builder for chaining.
*/
public Builder clearNetworkType() {
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00002000);
networkType_ = 0;
onChanged();
return this;
@@ -3118,7 +6007,7 @@ public Builder setProjectId(java.lang.String value) {
throw new NullPointerException();
}
projectId_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -3143,7 +6032,7 @@ public Builder setProjectId(java.lang.String value) {
*/
public Builder clearProjectId() {
projectId_ = getDefaultInstance().getProjectId();
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
@@ -3173,7 +6062,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
projectId_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java
index ad4a1e8f59dd..bac2482d8eeb 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java
@@ -128,6 +128,136 @@ public interface EndpointOrBuilder
*/
com.google.protobuf.ByteString getForwardingRuleBytes();
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardingRuleTarget field is set.
+ */
+ boolean hasForwardingRuleTarget();
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for forwardingRuleTarget.
+ */
+ int getForwardingRuleTargetValue();
+ /**
+ *
+ *
+ * + * Output only. Specifies the type of the target of the forwarding rule. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardingRuleTarget.
+ */
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget
+ getForwardingRuleTarget();
+
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerId field is set.
+ */
+ boolean hasLoadBalancerId();
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerId.
+ */
+ java.lang.String getLoadBalancerId();
+ /**
+ *
+ *
+ * + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + *+ * + *
optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for loadBalancerId.
+ */
+ com.google.protobuf.ByteString getLoadBalancerIdBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the loadBalancerType field is set.
+ */
+ boolean hasLoadBalancerType();
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for loadBalancerType.
+ */
+ int getLoadBalancerTypeValue();
+ /**
+ *
+ *
+ * + * Output only. Type of the load balancer the forwarding rule points to. + *+ * + *
+ * optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The loadBalancerType.
+ */
+ com.google.cloud.networkmanagement.v1beta1.LoadBalancerType getLoadBalancerType();
+
/**
*
*
@@ -184,7 +314,7 @@ public interface EndpointOrBuilder
*
*
* - * A [Cloud function](https://cloud.google.com/functions). + * A [Cloud Function](https://cloud.google.com/functions). ** *
@@ -198,7 +328,7 @@ public interface EndpointOrBuilder
*
*
*
- * A [Cloud function](https://cloud.google.com/functions).
+ * A [Cloud Function](https://cloud.google.com/functions).
*
*
*
@@ -212,7 +342,7 @@ public interface EndpointOrBuilder
*
*
*
- * A [Cloud function](https://cloud.google.com/functions).
+ * A [Cloud Function](https://cloud.google.com/functions).
*
*
*
@@ -222,6 +352,98 @@ public interface EndpointOrBuilder
com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpointOrBuilder
getCloudFunctionOrBuilder();
+ /**
+ *
+ *
+ *
+ * An [App Engine](https://cloud.google.com/appengine) [service
+ * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ boolean hasAppEngineVersion();
+ /**
+ *
+ *
+ *
+ * An [App Engine](https://cloud.google.com/appengine) [service
+ * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint
+ getAppEngineVersion();
+ /**
+ *
+ *
+ *
+ * An [App Engine](https://cloud.google.com/appengine) [service
+ * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpointOrBuilder
+ getAppEngineVersionOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ boolean hasCloudRunRevision();
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint
+ getCloudRunRevision();
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder();
+
/**
*
*
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java
index a06e831887af..85d79d38a02d 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java
@@ -140,6 +140,30 @@ public enum FirewallRuleType implements com.google.protobuf.ProtocolMessageEnum
* SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4;
*/
SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE(4),
+ /**
+ *
+ *
+ *
+ * Global network firewall policy rule.
+ * For details, see [Network firewall
+ * policies](https://cloud.google.com/vpc/docs/network-firewall-policies).
+ *
+ *
+ * NETWORK_FIREWALL_POLICY_RULE = 5;
+ */
+ NETWORK_FIREWALL_POLICY_RULE(5),
+ /**
+ *
+ *
+ *
+ * Regional network firewall policy rule.
+ * For details, see [Regional network firewall
+ * policies](https://cloud.google.com/firewall/docs/regional-firewall-policies).
+ *
+ *
+ * NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6;
+ */
+ NETWORK_REGIONAL_FIREWALL_POLICY_RULE(6),
UNRECOGNIZED(-1),
;
@@ -202,6 +226,30 @@ public enum FirewallRuleType implements com.google.protobuf.ProtocolMessageEnum
* SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4;
*/
public static final int SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * Global network firewall policy rule.
+ * For details, see [Network firewall
+ * policies](https://cloud.google.com/vpc/docs/network-firewall-policies).
+ *
+ *
+ * NETWORK_FIREWALL_POLICY_RULE = 5;
+ */
+ public static final int NETWORK_FIREWALL_POLICY_RULE_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * Regional network firewall policy rule.
+ * For details, see [Regional network firewall
+ * policies](https://cloud.google.com/firewall/docs/regional-firewall-policies).
+ *
+ *
+ * NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6;
+ */
+ public static final int NETWORK_REGIONAL_FIREWALL_POLICY_RULE_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -237,6 +285,10 @@ public static FirewallRuleType forNumber(int value) {
return IMPLIED_VPC_FIREWALL_RULE;
case 4:
return SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE;
+ case 5:
+ return NETWORK_FIREWALL_POLICY_RULE;
+ case 6:
+ return NETWORK_REGIONAL_FIREWALL_POLICY_RULE;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardInfo.java
index 32532b7e7e54..33f0f6a2de47 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardInfo.java
@@ -143,6 +143,26 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
* CLOUD_SQL_INSTANCE = 6;
*/
CLOUD_SQL_INSTANCE(6),
+ /**
+ *
+ *
+ *
+ * Forwarded to a VPC network in another project.
+ *
+ *
+ * ANOTHER_PROJECT = 7;
+ */
+ ANOTHER_PROJECT(7),
+ /**
+ *
+ *
+ *
+ * Forwarded to an NCC Hub.
+ *
+ *
+ * NCC_HUB = 8;
+ */
+ NCC_HUB(8),
UNRECOGNIZED(-1),
;
@@ -216,6 +236,26 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
* CLOUD_SQL_INSTANCE = 6;
*/
public static final int CLOUD_SQL_INSTANCE_VALUE = 6;
+ /**
+ *
+ *
+ *
+ * Forwarded to a VPC network in another project.
+ *
+ *
+ * ANOTHER_PROJECT = 7;
+ */
+ public static final int ANOTHER_PROJECT_VALUE = 7;
+ /**
+ *
+ *
+ *
+ * Forwarded to an NCC Hub.
+ *
+ *
+ * NCC_HUB = 8;
+ */
+ public static final int NCC_HUB_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -255,6 +295,10 @@ public static Target forNumber(int value) {
return IMPORTED_CUSTOM_ROUTE_NEXT_HOP;
case 6:
return CLOUD_SQL_INSTANCE;
+ case 7:
+ return ANOTHER_PROJECT;
+ case 8:
+ return NCC_HUB;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GoogleServiceInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GoogleServiceInfo.java
new file mode 100644
index 000000000000..34fd9d7ab262
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GoogleServiceInfo.java
@@ -0,0 +1,1015 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1beta1/trace.proto
+
+package com.google.cloud.networkmanagement.v1beta1;
+
+/**
+ *
+ *
+ *
+ * For display only. Details of a Google Service sending packets to a
+ * VPC network. Although the source IP might be a publicly routable address,
+ * some Google Services use special routes within Google production
+ * infrastructure to reach Compute Engine Instances.
+ * https://cloud.google.com/vpc/docs/routes#special_return_paths
+ *
+ *
+ * Protobuf type {@code google.cloud.networkmanagement.v1beta1.GoogleServiceInfo}
+ */
+public final class GoogleServiceInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.GoogleServiceInfo)
+ GoogleServiceInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GoogleServiceInfo.newBuilder() to construct.
+ private GoogleServiceInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GoogleServiceInfo() {
+ sourceIp_ = "";
+ googleServiceType_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GoogleServiceInfo();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto
+ .internal_static_google_cloud_networkmanagement_v1beta1_GoogleServiceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto
+ .internal_static_google_cloud_networkmanagement_v1beta1_GoogleServiceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.class,
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ * Protobuf enum {@code
+ * google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType}
+ */
+ public enum GoogleServiceType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified Google Service. Includes most of Google APIs and services.
+ *
+ *
+ * GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0;
+ */
+ GOOGLE_SERVICE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Identity aware proxy.
+ * https://cloud.google.com/iap/docs/using-tcp-forwarding
+ *
+ *
+ * IAP = 1;
+ */
+ IAP(1),
+ /**
+ *
+ *
+ *
+ * One of two services sharing IP ranges:
+ * * Load Balancer proxy
+ * * Centralized Health Check prober
+ * https://cloud.google.com/load-balancing/docs/firewall-rules
+ *
+ *
+ * GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2;
+ */
+ GFE_PROXY_OR_HEALTH_CHECK_PROBER(2),
+ /**
+ *
+ *
+ *
+ * Connectivity from Cloud DNS to forwarding targets or alternate name
+ * servers that use private routing.
+ * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules
+ * https://cloud.google.com/dns/docs/policies#firewall-rules
+ *
+ *
+ * CLOUD_DNS = 3;
+ */
+ CLOUD_DNS(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unspecified Google Service. Includes most of Google APIs and services.
+ *
+ *
+ * GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int GOOGLE_SERVICE_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Identity aware proxy.
+ * https://cloud.google.com/iap/docs/using-tcp-forwarding
+ *
+ *
+ * IAP = 1;
+ */
+ public static final int IAP_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * One of two services sharing IP ranges:
+ * * Load Balancer proxy
+ * * Centralized Health Check prober
+ * https://cloud.google.com/load-balancing/docs/firewall-rules
+ *
+ *
+ * GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2;
+ */
+ public static final int GFE_PROXY_OR_HEALTH_CHECK_PROBER_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Connectivity from Cloud DNS to forwarding targets or alternate name
+ * servers that use private routing.
+ * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules
+ * https://cloud.google.com/dns/docs/policies#firewall-rules
+ *
+ *
+ * CLOUD_DNS = 3;
+ */
+ public static final int CLOUD_DNS_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 GoogleServiceType 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 GoogleServiceType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return GOOGLE_SERVICE_TYPE_UNSPECIFIED;
+ case 1:
+ return IAP;
+ case 2:
+ return GFE_PROXY_OR_HEALTH_CHECK_PROBER;
+ case 3:
+ return CLOUD_DNS;
+ 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 GoogleServiceType findValueByNumber(int number) {
+ return GoogleServiceType.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final GoogleServiceType[] VALUES = values();
+
+ public static GoogleServiceType 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 GoogleServiceType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType)
+ }
+
+ public static final int SOURCE_IP_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object sourceIp_ = "";
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @return The sourceIp.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceIp() {
+ java.lang.Object ref = sourceIp_;
+ 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();
+ sourceIp_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @return The bytes for sourceIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceIpBytes() {
+ java.lang.Object ref = sourceIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GOOGLE_SERVICE_TYPE_FIELD_NUMBER = 2;
+ private int googleServiceType_ = 0;
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for googleServiceType.
+ */
+ @java.lang.Override
+ public int getGoogleServiceTypeValue() {
+ return googleServiceType_;
+ }
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType
+ getGoogleServiceType() {
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType result =
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType.forNumber(
+ googleServiceType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType
+ .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.GeneratedMessageV3.isStringEmpty(sourceIp_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceIp_);
+ }
+ if (googleServiceType_
+ != com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType
+ .GOOGLE_SERVICE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, googleServiceType_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceIp_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceIp_);
+ }
+ if (googleServiceType_
+ != com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType
+ .GOOGLE_SERVICE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, googleServiceType_);
+ }
+ 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.networkmanagement.v1beta1.GoogleServiceInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo other =
+ (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) obj;
+
+ if (!getSourceIp().equals(other.getSourceIp())) return false;
+ if (googleServiceType_ != other.googleServiceType_) 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) + SOURCE_IP_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceIp().hashCode();
+ hash = (37 * hash) + GOOGLE_SERVICE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + googleServiceType_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo 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.networkmanagement.v1beta1.GoogleServiceInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo 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.networkmanagement.v1beta1.GoogleServiceInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.GoogleServiceInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * For display only. Details of a Google Service sending packets to a
+ * VPC network. Although the source IP might be a publicly routable address,
+ * some Google Services use special routes within Google production
+ * infrastructure to reach Compute Engine Instances.
+ * https://cloud.google.com/vpc/docs/routes#special_return_paths
+ *
+ *
+ * Protobuf type {@code google.cloud.networkmanagement.v1beta1.GoogleServiceInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.GoogleServiceInfo)
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto
+ .internal_static_google_cloud_networkmanagement_v1beta1_GoogleServiceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto
+ .internal_static_google_cloud_networkmanagement_v1beta1_GoogleServiceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.class,
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.Builder.class);
+ }
+
+ // Construct using com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ sourceIp_ = "";
+ googleServiceType_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto
+ .internal_static_google_cloud_networkmanagement_v1beta1_GoogleServiceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo
+ getDefaultInstanceForType() {
+ return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo build() {
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo buildPartial() {
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo result =
+ new com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.sourceIp_ = sourceIp_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.googleServiceType_ = googleServiceType_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) {
+ return mergeFrom((com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo other) {
+ if (other
+ == com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance())
+ return this;
+ if (!other.getSourceIp().isEmpty()) {
+ sourceIp_ = other.sourceIp_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.googleServiceType_ != 0) {
+ setGoogleServiceTypeValue(other.getGoogleServiceTypeValue());
+ }
+ 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:
+ {
+ sourceIp_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16:
+ {
+ googleServiceType_ = 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 sourceIp_ = "";
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @return The sourceIp.
+ */
+ public java.lang.String getSourceIp() {
+ java.lang.Object ref = sourceIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceIp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @return The bytes for sourceIp.
+ */
+ public com.google.protobuf.ByteString getSourceIpBytes() {
+ java.lang.Object ref = sourceIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @param value The sourceIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceIp(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceIp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceIp() {
+ sourceIp_ = getDefaultInstance().getSourceIp();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @param value The bytes for sourceIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceIpBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceIp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int googleServiceType_ = 0;
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for googleServiceType.
+ */
+ @java.lang.Override
+ public int getGoogleServiceTypeValue() {
+ return googleServiceType_;
+ }
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @param value The enum numeric value on the wire for googleServiceType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGoogleServiceTypeValue(int value) {
+ googleServiceType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType
+ getGoogleServiceType() {
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType result =
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType.forNumber(
+ googleServiceType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @param value The googleServiceType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGoogleServiceType(
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ googleServiceType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGoogleServiceType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ googleServiceType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.GoogleServiceInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.GoogleServiceInfo)
+ private static final com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo();
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GoogleServiceInfo 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.networkmanagement.v1beta1.GoogleServiceInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GoogleServiceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GoogleServiceInfoOrBuilder.java
new file mode 100644
index 000000000000..b4c4529d0899
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GoogleServiceInfoOrBuilder.java
@@ -0,0 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1beta1/trace.proto
+
+package com.google.cloud.networkmanagement.v1beta1;
+
+public interface GoogleServiceInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.GoogleServiceInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @return The sourceIp.
+ */
+ java.lang.String getSourceIp();
+ /**
+ *
+ *
+ *
+ * Source IP address.
+ *
+ *
+ * string source_ip = 1;
+ *
+ * @return The bytes for sourceIp.
+ */
+ com.google.protobuf.ByteString getSourceIpBytes();
+
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for googleServiceType.
+ */
+ int getGoogleServiceTypeValue();
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType
+ getGoogleServiceType();
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java
index eb3c736dd604..1ee6ca753161 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java
@@ -453,7 +453,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.
- * See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @return The serviceAccount.
*/
@java.lang.Override
@@ -479,7 +479,7 @@ public java.lang.String getServiceAccount() {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.
- * See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @return The bytes for serviceAccount.
*/
@java.lang.Override
@@ -1842,7 +1842,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is
- * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @return The serviceAccount.
*/
@java.lang.Deprecated
@@ -1867,7 +1867,7 @@ public java.lang.String getServiceAccount() {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is
- * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @return The bytes for serviceAccount.
*/
@java.lang.Deprecated
@@ -1892,7 +1892,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is
- * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @param value The serviceAccount to set.
* @return This builder for chaining.
*/
@@ -1916,7 +1916,7 @@ public Builder setServiceAccount(java.lang.String value) {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is
- * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1936,7 +1936,7 @@ public Builder clearServiceAccount() {
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is
- * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @param value The bytes for serviceAccount to set.
* @return This builder for chaining.
*/
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java
index 69da937c7e2f..5ce343d55ec0 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java
@@ -234,7 +234,7 @@ public interface InstanceInfoOrBuilder
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.
- * See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @return The serviceAccount.
*/
@java.lang.Deprecated
@@ -249,7 +249,7 @@ public interface InstanceInfoOrBuilder
* string service_account = 8 [deprecated = true];
*
* @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.
- * See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
+ * See google/cloud/networkmanagement/v1beta1/trace.proto;l=268
* @return The bytes for serviceAccount.
*/
@java.lang.Deprecated
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java
index c62f4796da46..812cab87d569 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java
@@ -333,6 +333,16 @@ public enum BackendType implements com.google.protobuf.ProtocolMessageEnum {
* TARGET_POOL = 2;
*/
TARGET_POOL(2),
+ /**
+ *
+ *
+ *
+ * Target Instance as the load balancer's backend.
+ *
+ *
+ * TARGET_INSTANCE = 3;
+ */
+ TARGET_INSTANCE(3),
UNRECOGNIZED(-1),
;
@@ -366,6 +376,16 @@ public enum BackendType implements com.google.protobuf.ProtocolMessageEnum {
* TARGET_POOL = 2;
*/
public static final int TARGET_POOL_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Target Instance as the load balancer's backend.
+ *
+ *
+ * TARGET_INSTANCE = 3;
+ */
+ public static final int TARGET_INSTANCE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -397,6 +417,8 @@ public static BackendType forNumber(int value) {
return BACKEND_SERVICE;
case 2:
return TARGET_POOL;
+ case 3:
+ return TARGET_INSTANCE;
default:
return null;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerType.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerType.java
new file mode 100644
index 000000000000..7d34d184d220
--- /dev/null
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerType.java
@@ -0,0 +1,358 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/networkmanagement/v1beta1/trace.proto
+
+package com.google.cloud.networkmanagement.v1beta1;
+
+/**
+ *
+ *
+ *
+ * Type of a load balancer. For more information, see [Summary of Google Cloud
+ * load
+ * balancers](https://cloud.google.com/load-balancing/docs/load-balancing-overview#summary-of-google-cloud-load-balancers).
+ *
+ *
+ * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.LoadBalancerType}
+ */
+public enum LoadBalancerType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Forwarding rule points to a different target than a load balancer or a
+ * load balancer type is unknown.
+ *
+ *
+ * LOAD_BALANCER_TYPE_UNSPECIFIED = 0;
+ */
+ LOAD_BALANCER_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Global external HTTP(S) load balancer.
+ *
+ *
+ * HTTPS_ADVANCED_LOAD_BALANCER = 1;
+ */
+ HTTPS_ADVANCED_LOAD_BALANCER(1),
+ /**
+ *
+ *
+ *
+ * Global external HTTP(S) load balancer (classic)
+ *
+ *
+ * HTTPS_LOAD_BALANCER = 2;
+ */
+ HTTPS_LOAD_BALANCER(2),
+ /**
+ *
+ *
+ *
+ * Regional external HTTP(S) load balancer.
+ *
+ *
+ * REGIONAL_HTTPS_LOAD_BALANCER = 3;
+ */
+ REGIONAL_HTTPS_LOAD_BALANCER(3),
+ /**
+ *
+ *
+ *
+ * Internal HTTP(S) load balancer.
+ *
+ *
+ * INTERNAL_HTTPS_LOAD_BALANCER = 4;
+ */
+ INTERNAL_HTTPS_LOAD_BALANCER(4),
+ /**
+ *
+ *
+ *
+ * External SSL proxy load balancer.
+ *
+ *
+ * SSL_PROXY_LOAD_BALANCER = 5;
+ */
+ SSL_PROXY_LOAD_BALANCER(5),
+ /**
+ *
+ *
+ *
+ * External TCP proxy load balancer.
+ *
+ *
+ * TCP_PROXY_LOAD_BALANCER = 6;
+ */
+ TCP_PROXY_LOAD_BALANCER(6),
+ /**
+ *
+ *
+ *
+ * Internal regional TCP proxy load balancer.
+ *
+ *
+ * INTERNAL_TCP_PROXY_LOAD_BALANCER = 7;
+ */
+ INTERNAL_TCP_PROXY_LOAD_BALANCER(7),
+ /**
+ *
+ *
+ *
+ * External TCP/UDP Network load balancer.
+ *
+ *
+ * NETWORK_LOAD_BALANCER = 8;
+ */
+ NETWORK_LOAD_BALANCER(8),
+ /**
+ *
+ *
+ *
+ * Target-pool based external TCP/UDP Network load balancer.
+ *
+ *
+ * LEGACY_NETWORK_LOAD_BALANCER = 9;
+ */
+ LEGACY_NETWORK_LOAD_BALANCER(9),
+ /**
+ *
+ *
+ *
+ * Internal TCP/UDP load balancer.
+ *
+ *
+ * TCP_UDP_INTERNAL_LOAD_BALANCER = 10;
+ */
+ TCP_UDP_INTERNAL_LOAD_BALANCER(10),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Forwarding rule points to a different target than a load balancer or a
+ * load balancer type is unknown.
+ *
+ *
+ * LOAD_BALANCER_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int LOAD_BALANCER_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Global external HTTP(S) load balancer.
+ *
+ *
+ * HTTPS_ADVANCED_LOAD_BALANCER = 1;
+ */
+ public static final int HTTPS_ADVANCED_LOAD_BALANCER_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Global external HTTP(S) load balancer (classic)
+ *
+ *
+ * HTTPS_LOAD_BALANCER = 2;
+ */
+ public static final int HTTPS_LOAD_BALANCER_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Regional external HTTP(S) load balancer.
+ *
+ *
+ * REGIONAL_HTTPS_LOAD_BALANCER = 3;
+ */
+ public static final int REGIONAL_HTTPS_LOAD_BALANCER_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Internal HTTP(S) load balancer.
+ *
+ *
+ * INTERNAL_HTTPS_LOAD_BALANCER = 4;
+ */
+ public static final int INTERNAL_HTTPS_LOAD_BALANCER_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * External SSL proxy load balancer.
+ *
+ *
+ * SSL_PROXY_LOAD_BALANCER = 5;
+ */
+ public static final int SSL_PROXY_LOAD_BALANCER_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * External TCP proxy load balancer.
+ *
+ *
+ * TCP_PROXY_LOAD_BALANCER = 6;
+ */
+ public static final int TCP_PROXY_LOAD_BALANCER_VALUE = 6;
+ /**
+ *
+ *
+ *
+ * Internal regional TCP proxy load balancer.
+ *
+ *
+ * INTERNAL_TCP_PROXY_LOAD_BALANCER = 7;
+ */
+ public static final int INTERNAL_TCP_PROXY_LOAD_BALANCER_VALUE = 7;
+ /**
+ *
+ *
+ *
+ * External TCP/UDP Network load balancer.
+ *
+ *
+ * NETWORK_LOAD_BALANCER = 8;
+ */
+ public static final int NETWORK_LOAD_BALANCER_VALUE = 8;
+ /**
+ *
+ *
+ *
+ * Target-pool based external TCP/UDP Network load balancer.
+ *
+ *
+ * LEGACY_NETWORK_LOAD_BALANCER = 9;
+ */
+ public static final int LEGACY_NETWORK_LOAD_BALANCER_VALUE = 9;
+ /**
+ *
+ *
+ *
+ * Internal TCP/UDP load balancer.
+ *
+ *
+ * TCP_UDP_INTERNAL_LOAD_BALANCER = 10;
+ */
+ public static final int TCP_UDP_INTERNAL_LOAD_BALANCER_VALUE = 10;
+
+ 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 LoadBalancerType 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 LoadBalancerType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return LOAD_BALANCER_TYPE_UNSPECIFIED;
+ case 1:
+ return HTTPS_ADVANCED_LOAD_BALANCER;
+ case 2:
+ return HTTPS_LOAD_BALANCER;
+ case 3:
+ return REGIONAL_HTTPS_LOAD_BALANCER;
+ case 4:
+ return INTERNAL_HTTPS_LOAD_BALANCER;
+ case 5:
+ return SSL_PROXY_LOAD_BALANCER;
+ case 6:
+ return TCP_PROXY_LOAD_BALANCER;
+ case 7:
+ return INTERNAL_TCP_PROXY_LOAD_BALANCER;
+ case 8:
+ return NETWORK_LOAD_BALANCER;
+ case 9:
+ return LEGACY_NETWORK_LOAD_BALANCER;
+ case 10:
+ return TCP_UDP_INTERNAL_LOAD_BALANCER;
+ 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 LoadBalancerType findValueByNumber(int number) {
+ return LoadBalancerType.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final LoadBalancerType[] VALUES = values();
+
+ public static LoadBalancerType 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 LoadBalancerType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.LoadBalancerType)
+}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java
index 4a79e5df9b51..a55071c61e4f 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java
@@ -40,12 +40,19 @@ private RouteInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private RouteInfo() {
routeType_ = 0;
nextHopType_ = 0;
+ routeScope_ = 0;
displayName_ = "";
uri_ = "";
destIpRange_ = "";
nextHop_ = "";
networkUri_ = "";
instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ srcIpRange_ = "";
+ destPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ srcPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ protocols_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ nccHubUri_ = "";
+ nccSpokeUri_ = "";
}
@java.lang.Override
@@ -150,6 +157,16 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum {
* PEERING_DYNAMIC = 6;
*/
PEERING_DYNAMIC(6),
+ /**
+ *
+ *
+ *
+ * Policy based route.
+ *
+ *
+ * POLICY_BASED = 7;
+ */
+ POLICY_BASED(7),
UNRECOGNIZED(-1),
;
@@ -224,6 +241,16 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum {
* PEERING_DYNAMIC = 6;
*/
public static final int PEERING_DYNAMIC_VALUE = 6;
+ /**
+ *
+ *
+ *
+ * Policy based route.
+ *
+ *
+ * POLICY_BASED = 7;
+ */
+ public static final int POLICY_BASED_VALUE = 7;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -263,6 +290,8 @@ public static RouteType forNumber(int value) {
return PEERING_STATIC;
case 6:
return PEERING_DYNAMIC;
+ case 7:
+ return POLICY_BASED;
default:
return null;
}
@@ -454,6 +483,16 @@ public enum NextHopType implements com.google.protobuf.ProtocolMessageEnum {
* NEXT_HOP_ROUTER_APPLIANCE = 11;
*/
NEXT_HOP_ROUTER_APPLIANCE(11),
+ /**
+ *
+ *
+ *
+ * Next hop is an NCC hub.
+ *
+ *
+ * NEXT_HOP_NCC_HUB = 12;
+ */
+ NEXT_HOP_NCC_HUB(12),
UNRECOGNIZED(-1),
;
@@ -583,6 +622,16 @@ public enum NextHopType implements com.google.protobuf.ProtocolMessageEnum {
* NEXT_HOP_ROUTER_APPLIANCE = 11;
*/
public static final int NEXT_HOP_ROUTER_APPLIANCE_VALUE = 11;
+ /**
+ *
+ *
+ *
+ * Next hop is an NCC hub.
+ *
+ *
+ * NEXT_HOP_NCC_HUB = 12;
+ */
+ public static final int NEXT_HOP_NCC_HUB_VALUE = 12;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -632,6 +681,8 @@ public static NextHopType forNumber(int value) {
return NEXT_HOP_ILB;
case 11:
return NEXT_HOP_ROUTER_APPLIANCE;
+ case 12:
+ return NEXT_HOP_NCC_HUB;
default:
return null;
}
@@ -687,6 +738,166 @@ private NextHopType(int value) {
// @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType)
}
+ /**
+ *
+ *
+ *
+ * Indicates where routes are applicable.
+ *
+ *
+ * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope}
+ */
+ public enum RouteScope implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified scope. Default value.
+ *
+ *
+ * ROUTE_SCOPE_UNSPECIFIED = 0;
+ */
+ ROUTE_SCOPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Route is applicable to packets in Network.
+ *
+ *
+ * NETWORK = 1;
+ */
+ NETWORK(1),
+ /**
+ *
+ *
+ *
+ * Route is applicable to packets using NCC Hub's routing table.
+ *
+ *
+ * NCC_HUB = 2;
+ */
+ NCC_HUB(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unspecified scope. Default value.
+ *
+ *
+ * ROUTE_SCOPE_UNSPECIFIED = 0;
+ */
+ public static final int ROUTE_SCOPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Route is applicable to packets in Network.
+ *
+ *
+ * NETWORK = 1;
+ */
+ public static final int NETWORK_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Route is applicable to packets using NCC Hub's routing table.
+ *
+ *
+ * NCC_HUB = 2;
+ */
+ public static final int NCC_HUB_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 RouteScope 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 RouteScope forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ROUTE_SCOPE_UNSPECIFIED;
+ case 1:
+ return NETWORK;
+ case 2:
+ return NCC_HUB;
+ 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 RouteScope findValueByNumber(int number) {
+ return RouteScope.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDescriptor()
+ .getEnumTypes()
+ .get(2);
+ }
+
+ private static final RouteScope[] VALUES = values();
+
+ public static RouteScope 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 RouteScope(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope)
+ }
+
+ private int bitField0_;
public static final int ROUTE_TYPE_FIELD_NUMBER = 8;
private int routeType_ = 0;
/**
@@ -761,6 +972,43 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType getNextH
: result;
}
+ public static final int ROUTE_SCOPE_FIELD_NUMBER = 14;
+ private int routeScope_ = 0;
+ /**
+ *
+ *
+ *
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The enum numeric value on the wire for routeScope.
+ */
+ @java.lang.Override
+ public int getRouteScopeValue() {
+ return routeScope_;
+ }
+ /**
+ *
+ *
+ *
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The routeScope.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope getRouteScope() {
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope result =
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope.forNumber(routeScope_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope.UNRECOGNIZED
+ : result;
+ }
+
public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -769,7 +1017,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType getNextH
*
*
*
- * Name of a Compute Engine route.
+ * Name of a route.
*
*
* string display_name = 1;
@@ -792,7 +1040,7 @@ public java.lang.String getDisplayName() {
*
*
*
- * Name of a Compute Engine route.
+ * Name of a route.
*
*
* string display_name = 1;
@@ -820,10 +1068,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
* Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * not have an URI.
*
*
* string uri = 2;
@@ -846,10 +1094,10 @@ public java.lang.String getUri() {
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
* Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * not have an URI.
*
*
* string uri = 2;
@@ -979,7 +1227,7 @@ public com.google.protobuf.ByteString getNextHopBytes() {
*
*
*
- * URI of a Compute Engine network.
+ * URI of a Compute Engine network. NETWORK routes only.
*
*
* string network_uri = 5;
@@ -1002,7 +1250,7 @@ public java.lang.String getNetworkUri() {
*
*
*
- * URI of a Compute Engine network.
+ * URI of a Compute Engine network. NETWORK routes only.
*
*
* string network_uri = 5;
@@ -1104,589 +1352,1940 @@ public com.google.protobuf.ByteString getInstanceTagsBytes(int index) {
return instanceTags_.getByteString(index);
}
- private byte memoizedIsInitialized = -1;
+ public static final int SRC_IP_RANGE_FIELD_NUMBER = 10;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object srcIpRange_ = "";
+ /**
+ *
+ *
+ *
+ * Source IP address range of the route. Policy based routes only.
+ *
+ *
+ * string src_ip_range = 10;
+ *
+ * @return The srcIpRange.
+ */
@java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
+ public java.lang.String getSrcIpRange() {
+ java.lang.Object ref = srcIpRange_;
+ 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();
+ srcIpRange_ = s;
+ return s;
+ }
}
-
+ /**
+ *
+ *
+ *
+ * Source IP address range of the route. Policy based routes only.
+ *
+ *
+ * string src_ip_range = 10;
+ *
+ * @return The bytes for srcIpRange.
+ */
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destIpRange_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destIpRange_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHop_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextHop_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, networkUri_);
- }
- if (priority_ != 0) {
- output.writeInt32(6, priority_);
- }
- for (int i = 0; i < instanceTags_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 7, instanceTags_.getRaw(i));
- }
- if (routeType_
- != com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType.ROUTE_TYPE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(8, routeType_);
- }
- if (nextHopType_
- != com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType
- .NEXT_HOP_TYPE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(9, nextHopType_);
+ public com.google.protobuf.ByteString getSrcIpRangeBytes() {
+ java.lang.Object ref = srcIpRange_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ srcIpRange_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- getUnknownFields().writeTo(output);
}
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
+ public static final int DEST_PORT_RANGES_FIELD_NUMBER = 11;
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destIpRange_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destIpRange_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHop_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextHop_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, networkUri_);
- }
- if (priority_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, priority_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < instanceTags_.size(); i++) {
- dataSize += computeStringSizeNoTag(instanceTags_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getInstanceTagsList().size();
- }
- if (routeType_
- != com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType.ROUTE_TYPE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, routeType_);
- }
- if (nextHopType_
- != com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType
- .NEXT_HOP_TYPE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, nextHopType_);
- }
- 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.networkmanagement.v1beta1.RouteInfo)) {
- return super.equals(obj);
- }
- com.google.cloud.networkmanagement.v1beta1.RouteInfo other =
- (com.google.cloud.networkmanagement.v1beta1.RouteInfo) obj;
-
- if (routeType_ != other.routeType_) return false;
- if (nextHopType_ != other.nextHopType_) return false;
- if (!getDisplayName().equals(other.getDisplayName())) return false;
- if (!getUri().equals(other.getUri())) return false;
- if (!getDestIpRange().equals(other.getDestIpRange())) return false;
- if (!getNextHop().equals(other.getNextHop())) return false;
- if (!getNetworkUri().equals(other.getNetworkUri())) return false;
- if (getPriority() != other.getPriority()) return false;
- if (!getInstanceTagsList().equals(other.getInstanceTagsList())) 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) + ROUTE_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + routeType_;
- hash = (37 * hash) + NEXT_HOP_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + nextHopType_;
- hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getDisplayName().hashCode();
- hash = (37 * hash) + URI_FIELD_NUMBER;
- hash = (53 * hash) + getUri().hashCode();
- hash = (37 * hash) + DEST_IP_RANGE_FIELD_NUMBER;
- hash = (53 * hash) + getDestIpRange().hashCode();
- hash = (37 * hash) + NEXT_HOP_FIELD_NUMBER;
- hash = (53 * hash) + getNextHop().hashCode();
- hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER;
- hash = (53 * hash) + getNetworkUri().hashCode();
- hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
- hash = (53 * hash) + getPriority();
- if (getInstanceTagsCount() > 0) {
- hash = (37 * hash) + INSTANCE_TAGS_FIELD_NUMBER;
- hash = (53 * hash) + getInstanceTagsList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo 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.networkmanagement.v1beta1.RouteInfo parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo 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.networkmanagement.v1beta1.RouteInfo parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList destPortRanges_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string dest_port_ranges = 11;
+ *
+ * @return A list containing the destPortRanges.
+ */
+ public com.google.protobuf.ProtocolStringList getDestPortRangesList() {
+ return destPortRanges_;
}
-
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string dest_port_ranges = 11;
+ *
+ * @return The count of destPortRanges.
+ */
+ public int getDestPortRangesCount() {
+ return destPortRanges_.size();
}
-
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The destPortRanges at the given index.
+ */
+ public java.lang.String getDestPortRanges(int index) {
+ return destPortRanges_.get(index);
}
-
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the destPortRanges at the given index.
+ */
+ public com.google.protobuf.ByteString getDestPortRangesBytes(int index) {
+ return destPortRanges_.getByteString(index);
}
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
+ public static final int SRC_PORT_RANGES_FIELD_NUMBER = 12;
- public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList srcPortRanges_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @return A list containing the srcPortRanges.
+ */
+ public com.google.protobuf.ProtocolStringList getSrcPortRangesList() {
+ return srcPortRanges_;
}
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @return The count of srcPortRanges.
+ */
+ public int getSrcPortRangesCount() {
+ return srcPortRanges_.size();
}
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @param index The index of the element to return.
+ * @return The srcPortRanges at the given index.
+ */
+ public java.lang.String getSrcPortRanges(int index) {
+ return srcPortRanges_.get(index);
}
-
- public static Builder newBuilder(com.google.cloud.networkmanagement.v1beta1.RouteInfo prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the srcPortRanges at the given index.
+ */
+ public com.google.protobuf.ByteString getSrcPortRangesBytes(int index) {
+ return srcPortRanges_.getByteString(index);
}
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
+ public static final int PROTOCOLS_FIELD_NUMBER = 13;
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList protocols_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
- * For display only. Metadata associated with a Compute Engine route.
+ * Protocols of the route. Policy based routes only.
*
*
- * Protobuf type {@code google.cloud.networkmanagement.v1beta1.RouteInfo}
+ * repeated string protocols = 13;
+ *
+ * @return A list containing the protocols.
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- implements
- // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.RouteInfo)
- com.google.cloud.networkmanagement.v1beta1.RouteInfoOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.networkmanagement.v1beta1.TraceProto
- .internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.networkmanagement.v1beta1.TraceProto
- .internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.networkmanagement.v1beta1.RouteInfo.class,
- com.google.cloud.networkmanagement.v1beta1.RouteInfo.Builder.class);
- }
+ public com.google.protobuf.ProtocolStringList getProtocolsList() {
+ return protocols_;
+ }
+ /**
+ *
+ *
+ *
+ * Protocols of the route. Policy based routes only.
+ *
+ *
+ * repeated string protocols = 13;
+ *
+ * @return The count of protocols.
+ */
+ public int getProtocolsCount() {
+ return protocols_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Protocols of the route. Policy based routes only.
+ *
+ *
+ * repeated string protocols = 13;
+ *
+ * @param index The index of the element to return.
+ * @return The protocols at the given index.
+ */
+ public java.lang.String getProtocols(int index) {
+ return protocols_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Protocols of the route. Policy based routes only.
+ *
+ *
+ * repeated string protocols = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the protocols at the given index.
+ */
+ public com.google.protobuf.ByteString getProtocolsBytes(int index) {
+ return protocols_.getByteString(index);
+ }
- // Construct using com.google.cloud.networkmanagement.v1beta1.RouteInfo.newBuilder()
- private Builder() {}
+ public static final int NCC_HUB_URI_FIELD_NUMBER = 15;
- private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nccHubUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a NCC Hub. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_hub_uri = 15;
+ *
+ * @return Whether the nccHubUri field is set.
+ */
+ @java.lang.Override
+ public boolean hasNccHubUri() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * URI of a NCC Hub. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_hub_uri = 15;
+ *
+ * @return The nccHubUri.
+ */
+ @java.lang.Override
+ public java.lang.String getNccHubUri() {
+ java.lang.Object ref = nccHubUri_;
+ 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();
+ nccHubUri_ = s;
+ return s;
}
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- routeType_ = 0;
- nextHopType_ = 0;
- displayName_ = "";
- uri_ = "";
- destIpRange_ = "";
- nextHop_ = "";
- networkUri_ = "";
- priority_ = 0;
- instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
- return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a NCC Hub. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_hub_uri = 15;
+ *
+ * @return The bytes for nccHubUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNccHubUriBytes() {
+ java.lang.Object ref = nccHubUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nccHubUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
+ }
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.networkmanagement.v1beta1.TraceProto
- .internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_descriptor;
- }
+ public static final int NCC_SPOKE_URI_FIELD_NUMBER = 16;
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.RouteInfo getDefaultInstanceForType() {
- return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nccSpokeUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @return Whether the nccSpokeUri field is set.
+ */
+ @java.lang.Override
+ public boolean hasNccSpokeUri() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @return The nccSpokeUri.
+ */
+ @java.lang.Override
+ public java.lang.String getNccSpokeUri() {
+ java.lang.Object ref = nccSpokeUri_;
+ 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();
+ nccSpokeUri_ = s;
+ return s;
}
-
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.RouteInfo build() {
- com.google.cloud.networkmanagement.v1beta1.RouteInfo result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @return The bytes for nccSpokeUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNccSpokeUriBytes() {
+ java.lang.Object ref = nccSpokeUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nccSpokeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
+ }
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.RouteInfo buildPartial() {
- com.google.cloud.networkmanagement.v1beta1.RouteInfo result =
- new com.google.cloud.networkmanagement.v1beta1.RouteInfo(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
+ private byte memoizedIsInitialized = -1;
- private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.RouteInfo result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.routeType_ = routeType_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.nextHopType_ = nextHopType_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.displayName_ = displayName_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.uri_ = uri_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.destIpRange_ = destIpRange_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.nextHop_ = nextHop_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.networkUri_ = networkUri_;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.priority_ = priority_;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- instanceTags_.makeImmutable();
- result.instanceTags_ = instanceTags_;
- }
- }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
+ memoizedIsInitialized = 1;
+ return true;
+ }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
}
-
- @java.lang.Override
- public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
}
-
- @java.lang.Override
- public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destIpRange_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destIpRange_);
}
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHop_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextHop_);
}
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, networkUri_);
}
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.networkmanagement.v1beta1.RouteInfo) {
- return mergeFrom((com.google.cloud.networkmanagement.v1beta1.RouteInfo) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
+ if (priority_ != 0) {
+ output.writeInt32(6, priority_);
+ }
+ for (int i = 0; i < instanceTags_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, instanceTags_.getRaw(i));
+ }
+ if (routeType_
+ != com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType.ROUTE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(8, routeType_);
+ }
+ if (nextHopType_
+ != com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType
+ .NEXT_HOP_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(9, nextHopType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcIpRange_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, srcIpRange_);
+ }
+ for (int i = 0; i < destPortRanges_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, destPortRanges_.getRaw(i));
+ }
+ for (int i = 0; i < srcPortRanges_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, srcPortRanges_.getRaw(i));
+ }
+ for (int i = 0; i < protocols_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, protocols_.getRaw(i));
+ }
+ if (routeScope_
+ != com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope.ROUTE_SCOPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(14, routeScope_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, nccHubUri_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 16, nccSpokeUri_);
}
+ getUnknownFields().writeTo(output);
+ }
- public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RouteInfo other) {
- if (other == com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance())
- return this;
- if (other.routeType_ != 0) {
- setRouteTypeValue(other.getRouteTypeValue());
- }
- if (other.nextHopType_ != 0) {
- setNextHopTypeValue(other.getNextHopTypeValue());
- }
- if (!other.getDisplayName().isEmpty()) {
- displayName_ = other.displayName_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (!other.getUri().isEmpty()) {
- uri_ = other.uri_;
- bitField0_ |= 0x00000008;
- onChanged();
- }
- if (!other.getDestIpRange().isEmpty()) {
- destIpRange_ = other.destIpRange_;
- bitField0_ |= 0x00000010;
- onChanged();
- }
- if (!other.getNextHop().isEmpty()) {
- nextHop_ = other.nextHop_;
- bitField0_ |= 0x00000020;
- onChanged();
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destIpRange_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destIpRange_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHop_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextHop_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, networkUri_);
+ }
+ if (priority_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, priority_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < instanceTags_.size(); i++) {
+ dataSize += computeStringSizeNoTag(instanceTags_.getRaw(i));
}
- if (!other.getNetworkUri().isEmpty()) {
- networkUri_ = other.networkUri_;
- bitField0_ |= 0x00000040;
- onChanged();
+ size += dataSize;
+ size += 1 * getInstanceTagsList().size();
+ }
+ if (routeType_
+ != com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType.ROUTE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, routeType_);
+ }
+ if (nextHopType_
+ != com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType
+ .NEXT_HOP_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, nextHopType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcIpRange_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, srcIpRange_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < destPortRanges_.size(); i++) {
+ dataSize += computeStringSizeNoTag(destPortRanges_.getRaw(i));
}
- if (other.getPriority() != 0) {
- setPriority(other.getPriority());
+ size += dataSize;
+ size += 1 * getDestPortRangesList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < srcPortRanges_.size(); i++) {
+ dataSize += computeStringSizeNoTag(srcPortRanges_.getRaw(i));
}
- if (!other.instanceTags_.isEmpty()) {
- if (instanceTags_.isEmpty()) {
- instanceTags_ = other.instanceTags_;
- bitField0_ |= 0x00000100;
- } else {
- ensureInstanceTagsIsMutable();
- instanceTags_.addAll(other.instanceTags_);
- }
- onChanged();
+ size += dataSize;
+ size += 1 * getSrcPortRangesList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < protocols_.size(); i++) {
+ dataSize += computeStringSizeNoTag(protocols_.getRaw(i));
}
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
+ size += dataSize;
+ size += 1 * getProtocolsList().size();
+ }
+ if (routeScope_
+ != com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope.ROUTE_SCOPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, routeScope_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, nccHubUri_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, nccSpokeUri_);
}
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
- @java.lang.Override
- public final boolean isInitialized() {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
return true;
}
+ if (!(obj instanceof com.google.cloud.networkmanagement.v1beta1.RouteInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo other =
+ (com.google.cloud.networkmanagement.v1beta1.RouteInfo) obj;
- @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:
- {
- displayName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 10
- case 18:
- {
- uri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 18
- case 26:
- {
- destIpRange_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
- break;
- } // case 26
- case 34:
- {
- nextHop_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 34
- case 42:
- {
- networkUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
- break;
- } // case 42
- case 48:
- {
- priority_ = input.readInt32();
- bitField0_ |= 0x00000080;
- break;
- } // case 48
- case 58:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureInstanceTagsIsMutable();
- instanceTags_.add(s);
- break;
- } // case 58
- case 64:
- {
- routeType_ = input.readEnum();
- bitField0_ |= 0x00000001;
- break;
- } // case 64
- case 72:
- {
- nextHopType_ = input.readEnum();
- bitField0_ |= 0x00000002;
- break;
- } // case 72
- 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
+ if (routeType_ != other.routeType_) return false;
+ if (nextHopType_ != other.nextHopType_) return false;
+ if (routeScope_ != other.routeScope_) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getDestIpRange().equals(other.getDestIpRange())) return false;
+ if (!getNextHop().equals(other.getNextHop())) return false;
+ if (!getNetworkUri().equals(other.getNetworkUri())) return false;
+ if (getPriority() != other.getPriority()) return false;
+ if (!getInstanceTagsList().equals(other.getInstanceTagsList())) return false;
+ if (!getSrcIpRange().equals(other.getSrcIpRange())) return false;
+ if (!getDestPortRangesList().equals(other.getDestPortRangesList())) return false;
+ if (!getSrcPortRangesList().equals(other.getSrcPortRangesList())) return false;
+ if (!getProtocolsList().equals(other.getProtocolsList())) return false;
+ if (hasNccHubUri() != other.hasNccHubUri()) return false;
+ if (hasNccHubUri()) {
+ if (!getNccHubUri().equals(other.getNccHubUri())) return false;
+ }
+ if (hasNccSpokeUri() != other.hasNccSpokeUri()) return false;
+ if (hasNccSpokeUri()) {
+ if (!getNccSpokeUri().equals(other.getNccSpokeUri())) 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) + ROUTE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + routeType_;
+ hash = (37 * hash) + NEXT_HOP_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + nextHopType_;
+ hash = (37 * hash) + ROUTE_SCOPE_FIELD_NUMBER;
+ hash = (53 * hash) + routeScope_;
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + DEST_IP_RANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getDestIpRange().hashCode();
+ hash = (37 * hash) + NEXT_HOP_FIELD_NUMBER;
+ hash = (53 * hash) + getNextHop().hashCode();
+ hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNetworkUri().hashCode();
+ hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
+ hash = (53 * hash) + getPriority();
+ if (getInstanceTagsCount() > 0) {
+ hash = (37 * hash) + INSTANCE_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceTagsList().hashCode();
+ }
+ hash = (37 * hash) + SRC_IP_RANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getSrcIpRange().hashCode();
+ if (getDestPortRangesCount() > 0) {
+ hash = (37 * hash) + DEST_PORT_RANGES_FIELD_NUMBER;
+ hash = (53 * hash) + getDestPortRangesList().hashCode();
+ }
+ if (getSrcPortRangesCount() > 0) {
+ hash = (37 * hash) + SRC_PORT_RANGES_FIELD_NUMBER;
+ hash = (53 * hash) + getSrcPortRangesList().hashCode();
+ }
+ if (getProtocolsCount() > 0) {
+ hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getProtocolsList().hashCode();
+ }
+ if (hasNccHubUri()) {
+ hash = (37 * hash) + NCC_HUB_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNccHubUri().hashCode();
+ }
+ if (hasNccSpokeUri()) {
+ hash = (37 * hash) + NCC_SPOKE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNccSpokeUri().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo 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.networkmanagement.v1beta1.RouteInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo 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.networkmanagement.v1beta1.RouteInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.networkmanagement.v1beta1.RouteInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.RouteInfo 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * For display only. Metadata associated with a Compute Engine route.
+ *
+ *
+ * Protobuf type {@code google.cloud.networkmanagement.v1beta1.RouteInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.RouteInfo)
+ com.google.cloud.networkmanagement.v1beta1.RouteInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto
+ .internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto
+ .internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.class,
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.Builder.class);
+ }
+
+ // Construct using com.google.cloud.networkmanagement.v1beta1.RouteInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ routeType_ = 0;
+ nextHopType_ = 0;
+ routeScope_ = 0;
+ displayName_ = "";
+ uri_ = "";
+ destIpRange_ = "";
+ nextHop_ = "";
+ networkUri_ = "";
+ priority_ = 0;
+ instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ srcIpRange_ = "";
+ destPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ srcPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ protocols_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ nccHubUri_ = "";
+ nccSpokeUri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.networkmanagement.v1beta1.TraceProto
+ .internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.RouteInfo getDefaultInstanceForType() {
+ return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.RouteInfo build() {
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.RouteInfo buildPartial() {
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo result =
+ new com.google.cloud.networkmanagement.v1beta1.RouteInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.RouteInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.routeType_ = routeType_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextHopType_ = nextHopType_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.routeScope_ = routeScope_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.uri_ = uri_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.destIpRange_ = destIpRange_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.nextHop_ = nextHop_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.networkUri_ = networkUri_;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.priority_ = priority_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ instanceTags_.makeImmutable();
+ result.instanceTags_ = instanceTags_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.srcIpRange_ = srcIpRange_;
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ destPortRanges_.makeImmutable();
+ result.destPortRanges_ = destPortRanges_;
+ }
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ srcPortRanges_.makeImmutable();
+ result.srcPortRanges_ = srcPortRanges_;
+ }
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ protocols_.makeImmutable();
+ result.protocols_ = protocols_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00004000) != 0)) {
+ result.nccHubUri_ = nccHubUri_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.nccSpokeUri_ = nccSpokeUri_;
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.networkmanagement.v1beta1.RouteInfo) {
+ return mergeFrom((com.google.cloud.networkmanagement.v1beta1.RouteInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RouteInfo other) {
+ if (other == com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance())
+ return this;
+ if (other.routeType_ != 0) {
+ setRouteTypeValue(other.getRouteTypeValue());
+ }
+ if (other.nextHopType_ != 0) {
+ setNextHopTypeValue(other.getNextHopTypeValue());
+ }
+ if (other.routeScope_ != 0) {
+ setRouteScopeValue(other.getRouteScopeValue());
+ }
+ if (!other.getDisplayName().isEmpty()) {
+ displayName_ = other.displayName_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (!other.getDestIpRange().isEmpty()) {
+ destIpRange_ = other.destIpRange_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (!other.getNextHop().isEmpty()) {
+ nextHop_ = other.nextHop_;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ if (!other.getNetworkUri().isEmpty()) {
+ networkUri_ = other.networkUri_;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ if (other.getPriority() != 0) {
+ setPriority(other.getPriority());
+ }
+ if (!other.instanceTags_.isEmpty()) {
+ if (instanceTags_.isEmpty()) {
+ instanceTags_ = other.instanceTags_;
+ bitField0_ |= 0x00000200;
+ } else {
+ ensureInstanceTagsIsMutable();
+ instanceTags_.addAll(other.instanceTags_);
+ }
+ onChanged();
+ }
+ if (!other.getSrcIpRange().isEmpty()) {
+ srcIpRange_ = other.srcIpRange_;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ if (!other.destPortRanges_.isEmpty()) {
+ if (destPortRanges_.isEmpty()) {
+ destPortRanges_ = other.destPortRanges_;
+ bitField0_ |= 0x00000800;
+ } else {
+ ensureDestPortRangesIsMutable();
+ destPortRanges_.addAll(other.destPortRanges_);
+ }
+ onChanged();
+ }
+ if (!other.srcPortRanges_.isEmpty()) {
+ if (srcPortRanges_.isEmpty()) {
+ srcPortRanges_ = other.srcPortRanges_;
+ bitField0_ |= 0x00001000;
+ } else {
+ ensureSrcPortRangesIsMutable();
+ srcPortRanges_.addAll(other.srcPortRanges_);
+ }
+ onChanged();
+ }
+ if (!other.protocols_.isEmpty()) {
+ if (protocols_.isEmpty()) {
+ protocols_ = other.protocols_;
+ bitField0_ |= 0x00002000;
+ } else {
+ ensureProtocolsIsMutable();
+ protocols_.addAll(other.protocols_);
+ }
+ onChanged();
+ }
+ if (other.hasNccHubUri()) {
+ nccHubUri_ = other.nccHubUri_;
+ bitField0_ |= 0x00004000;
+ onChanged();
+ }
+ if (other.hasNccSpokeUri()) {
+ nccSpokeUri_ = other.nccSpokeUri_;
+ bitField0_ |= 0x00008000;
+ 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:
+ {
+ displayName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 10
+ case 18:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 18
+ case 26:
+ {
+ destIpRange_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 26
+ case 34:
+ {
+ nextHop_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 34
+ case 42:
+ {
+ networkUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 42
+ case 48:
+ {
+ priority_ = input.readInt32();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 48
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureInstanceTagsIsMutable();
+ instanceTags_.add(s);
+ break;
+ } // case 58
+ case 64:
+ {
+ routeType_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 64
+ case 72:
+ {
+ nextHopType_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 72
+ case 82:
+ {
+ srcIpRange_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 82
+ case 90:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureDestPortRangesIsMutable();
+ destPortRanges_.add(s);
+ break;
+ } // case 90
+ case 98:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureSrcPortRangesIsMutable();
+ srcPortRanges_.add(s);
+ break;
+ } // case 98
+ case 106:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureProtocolsIsMutable();
+ protocols_.add(s);
+ break;
+ } // case 106
+ case 112:
+ {
+ routeScope_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 112
+ case 122:
+ {
+ nccHubUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00004000;
+ break;
+ } // case 122
+ case 130:
+ {
+ nccSpokeUri_ = input.readStringRequireUtf8();
+ 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 int routeType_ = 0;
+ /**
+ *
+ *
+ *
+ * Type of route.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ *
+ * @return The enum numeric value on the wire for routeType.
+ */
+ @java.lang.Override
+ public int getRouteTypeValue() {
+ return routeType_;
+ }
+ /**
+ *
+ *
+ *
+ * Type of route.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ *
+ * @param value The enum numeric value on the wire for routeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteTypeValue(int value) {
+ routeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Type of route.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ *
+ * @return The routeType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType getRouteType() {
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType result =
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType.forNumber(routeType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Type of route.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ *
+ * @param value The routeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteType(
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ routeType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Type of route.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRouteType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ routeType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int nextHopType_ = 0;
+ /**
+ *
+ *
+ *
+ * Type of next hop.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @return The enum numeric value on the wire for nextHopType.
+ */
+ @java.lang.Override
+ public int getNextHopTypeValue() {
+ return nextHopType_;
+ }
+ /**
+ *
+ *
+ *
+ * Type of next hop.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @param value The enum numeric value on the wire for nextHopType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextHopTypeValue(int value) {
+ nextHopType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Type of next hop.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @return The nextHopType.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType getNextHopType() {
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType result =
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType.forNumber(nextHopType_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Type of next hop.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @param value The nextHopType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextHopType(
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ nextHopType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Type of next hop.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextHopType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ nextHopType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int routeScope_ = 0;
+ /**
+ *
+ *
+ *
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The enum numeric value on the wire for routeScope.
+ */
+ @java.lang.Override
+ public int getRouteScopeValue() {
+ return routeScope_;
+ }
+ /**
+ *
+ *
+ *
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @param value The enum numeric value on the wire for routeScope to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteScopeValue(int value) {
+ routeScope_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The routeScope.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope getRouteScope() {
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope result =
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope.forNumber(routeScope_);
+ return result == null
+ ? com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @param value The routeScope to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteScope(
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ routeScope_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRouteScope() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ routeScope_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Name of a route.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Name of a route.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Name of a route.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @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_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Name of a route.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Name of a route.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @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_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
+ * Advertised route from Google Cloud VPC to on-premises network also does
+ * not have an URI.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
+ * Advertised route from Google Cloud VPC to on-premises network also does
+ * not have an URI.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
+ * Advertised route from Google Cloud VPC to on-premises network also does
+ * not have an URI.
+ *
+ *
+ * string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
+ * Advertised route from Google Cloud VPC to on-premises network also does
+ * not have an URI.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
+ * Advertised route from Google Cloud VPC to on-premises network also does
+ * not have an URI.
+ *
+ *
+ * string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object destIpRange_ = "";
+ /**
+ *
+ *
+ *
+ * Destination IP range of the route.
+ *
+ *
+ * string dest_ip_range = 3;
+ *
+ * @return The destIpRange.
+ */
+ public java.lang.String getDestIpRange() {
+ java.lang.Object ref = destIpRange_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ destIpRange_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP range of the route.
+ *
+ *
+ * string dest_ip_range = 3;
+ *
+ * @return The bytes for destIpRange.
+ */
+ public com.google.protobuf.ByteString getDestIpRangeBytes() {
+ java.lang.Object ref = destIpRange_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ destIpRange_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP range of the route.
+ *
+ *
+ * string dest_ip_range = 3;
+ *
+ * @param value The destIpRange to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestIpRange(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destIpRange_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP range of the route.
+ *
+ *
+ * string dest_ip_range = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDestIpRange() {
+ destIpRange_ = getDefaultInstance().getDestIpRange();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP range of the route.
+ *
+ *
+ * string dest_ip_range = 3;
+ *
+ * @param value The bytes for destIpRange to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ destIpRange_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object nextHop_ = "";
+ /**
+ *
+ *
+ *
+ * Next hop of the route.
+ *
+ *
+ * string next_hop = 4;
+ *
+ * @return The nextHop.
+ */
+ public java.lang.String getNextHop() {
+ java.lang.Object ref = nextHop_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextHop_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Next hop of the route.
+ *
+ *
+ * string next_hop = 4;
+ *
+ * @return The bytes for nextHop.
+ */
+ public com.google.protobuf.ByteString getNextHopBytes() {
+ java.lang.Object ref = nextHop_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextHop_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Next hop of the route.
+ *
+ *
+ * string next_hop = 4;
+ *
+ * @param value The nextHop to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextHop(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nextHop_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Next hop of the route.
+ *
+ *
+ * string next_hop = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextHop() {
+ nextHop_ = getDefaultInstance().getNextHop();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Next hop of the route.
+ *
+ *
+ * string next_hop = 4;
+ *
+ * @param value The bytes for nextHop to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextHopBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ nextHop_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
- private int bitField0_;
-
- private int routeType_ = 0;
+ private java.lang.Object networkUri_ = "";
/**
*
*
*
- * Type of route.
+ * URI of a Compute Engine network. NETWORK routes only.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ * string network_uri = 5;
*
- * @return The enum numeric value on the wire for routeType.
+ * @return The networkUri.
*/
- @java.lang.Override
- public int getRouteTypeValue() {
- return routeType_;
+ public java.lang.String getNetworkUri() {
+ java.lang.Object ref = networkUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ networkUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
*
- * Type of route.
+ * URI of a Compute Engine network. NETWORK routes only.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ * string network_uri = 5;
*
- * @param value The enum numeric value on the wire for routeType to set.
+ * @return The bytes for networkUri.
+ */
+ public com.google.protobuf.ByteString getNetworkUriBytes() {
+ java.lang.Object ref = networkUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ networkUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine network. NETWORK routes only.
+ *
+ *
+ * string network_uri = 5;
+ *
+ * @param value The networkUri to set.
* @return This builder for chaining.
*/
- public Builder setRouteTypeValue(int value) {
- routeType_ = value;
- bitField0_ |= 0x00000001;
+ public Builder setNetworkUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ networkUri_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -1694,92 +3293,183 @@ public Builder setRouteTypeValue(int value) {
*
*
*
- * Type of route.
+ * URI of a Compute Engine network. NETWORK routes only.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ * string network_uri = 5;
*
- * @return The routeType.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType getRouteType() {
- com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType result =
- com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType.forNumber(routeType_);
- return result == null
- ? com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType.UNRECOGNIZED
- : result;
+ public Builder clearNetworkUri() {
+ networkUri_ = getDefaultInstance().getNetworkUri();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
}
/**
*
*
*
- * Type of route.
+ * URI of a Compute Engine network. NETWORK routes only.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ * string network_uri = 5;
*
- * @param value The routeType to set.
+ * @param value The bytes for networkUri to set.
* @return This builder for chaining.
*/
- public Builder setRouteType(
- com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType value) {
+ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000001;
- routeType_ = value.getNumber();
+ checkByteStringIsUtf8(value);
+ networkUri_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
+
+ private int priority_;
/**
*
*
*
- * Type of route.
+ * Priority of the route.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType route_type = 8;
+ * int32 priority = 6;
+ *
+ * @return The priority.
+ */
+ @java.lang.Override
+ public int getPriority() {
+ return priority_;
+ }
+ /**
+ *
+ *
+ *
+ * Priority of the route.
+ *
+ *
+ * int32 priority = 6;
*
+ * @param value The priority to set.
* @return This builder for chaining.
*/
- public Builder clearRouteType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- routeType_ = 0;
+ public Builder setPriority(int value) {
+
+ priority_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Priority of the route.
+ *
+ *
+ * int32 priority = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPriority() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ priority_ = 0;
onChanged();
return this;
}
- private int nextHopType_ = 0;
+ private com.google.protobuf.LazyStringArrayList instanceTags_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureInstanceTagsIsMutable() {
+ if (!instanceTags_.isModifiable()) {
+ instanceTags_ = new com.google.protobuf.LazyStringArrayList(instanceTags_);
+ }
+ bitField0_ |= 0x00000200;
+ }
/**
*
*
*
- * Type of next hop.
+ * Instance tags of the route.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
- * @return The enum numeric value on the wire for nextHopType.
+ * @return A list containing the instanceTags.
*/
- @java.lang.Override
- public int getNextHopTypeValue() {
- return nextHopType_;
+ public com.google.protobuf.ProtocolStringList getInstanceTagsList() {
+ instanceTags_.makeImmutable();
+ return instanceTags_;
}
/**
*
*
*
- * Type of next hop.
+ * Instance tags of the route.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
- * @param value The enum numeric value on the wire for nextHopType to set.
+ * @return The count of instanceTags.
+ */
+ public int getInstanceTagsCount() {
+ return instanceTags_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Instance tags of the route.
+ *
+ *
+ * repeated string instance_tags = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The instanceTags at the given index.
+ */
+ public java.lang.String getInstanceTags(int index) {
+ return instanceTags_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Instance tags of the route.
+ *
+ *
+ * repeated string instance_tags = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the instanceTags at the given index.
+ */
+ public com.google.protobuf.ByteString getInstanceTagsBytes(int index) {
+ return instanceTags_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Instance tags of the route.
+ *
+ *
+ * repeated string instance_tags = 7;
+ *
+ * @param index The index to set the value at.
+ * @param value The instanceTags to set.
* @return This builder for chaining.
*/
- public Builder setNextHopTypeValue(int value) {
- nextHopType_ = value;
- bitField0_ |= 0x00000002;
+ public Builder setInstanceTags(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInstanceTagsIsMutable();
+ instanceTags_.set(index, value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -1787,40 +3477,58 @@ public Builder setNextHopTypeValue(int value) {
*
*
*
- * Type of next hop.
+ * Instance tags of the route.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
- * @return The nextHopType.
+ * @param value The instanceTags to add.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType getNextHopType() {
- com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType result =
- com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType.forNumber(nextHopType_);
- return result == null
- ? com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType.UNRECOGNIZED
- : result;
+ public Builder addInstanceTags(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInstanceTagsIsMutable();
+ instanceTags_.add(value);
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Instance tags of the route.
+ *
+ *
+ * repeated string instance_tags = 7;
+ *
+ * @param values The instanceTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllInstanceTags(java.lang.Iterable values) {
+ ensureInstanceTagsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceTags_);
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Type of next hop.
+ * Instance tags of the route.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
- * @param value The nextHopType to set.
* @return This builder for chaining.
*/
- public Builder setNextHopType(
- com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- nextHopType_ = value.getNumber();
+ public Builder clearInstanceTags() {
+ instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ ;
onChanged();
return this;
}
@@ -1828,38 +3536,44 @@ public Builder setNextHopType(
*
*
*
- * Type of next hop.
+ * Instance tags of the route.
*
*
- * .google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType next_hop_type = 9;
+ * repeated string instance_tags = 7;
*
+ * @param value The bytes of the instanceTags to add.
* @return This builder for chaining.
*/
- public Builder clearNextHopType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- nextHopType_ = 0;
+ public Builder addInstanceTagsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureInstanceTagsIsMutable();
+ instanceTags_.add(value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
- private java.lang.Object displayName_ = "";
+ private java.lang.Object srcIpRange_ = "";
/**
*
*
*
- * Name of a Compute Engine route.
+ * Source IP address range of the route. Policy based routes only.
*
*
- * string display_name = 1;
+ * string src_ip_range = 10;
*
- * @return The displayName.
+ * @return The srcIpRange.
*/
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
+ public java.lang.String getSrcIpRange() {
+ java.lang.Object ref = srcIpRange_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
+ srcIpRange_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1869,19 +3583,19 @@ public java.lang.String getDisplayName() {
*
*
*
- * Name of a Compute Engine route.
+ * Source IP address range of the route. Policy based routes only.
*
*
- * string display_name = 1;
+ * string src_ip_range = 10;
*
- * @return The bytes for displayName.
+ * @return The bytes for srcIpRange.
*/
- public com.google.protobuf.ByteString getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
+ public com.google.protobuf.ByteString getSrcIpRangeBytes() {
+ java.lang.Object ref = srcIpRange_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- displayName_ = b;
+ srcIpRange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -1891,20 +3605,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Name of a Compute Engine route.
+ * Source IP address range of the route. Policy based routes only.
*
*
- * string display_name = 1;
+ * string src_ip_range = 10;
*
- * @param value The displayName to set.
+ * @param value The srcIpRange to set.
* @return This builder for chaining.
*/
- public Builder setDisplayName(java.lang.String value) {
+ public Builder setSrcIpRange(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- displayName_ = value;
- bitField0_ |= 0x00000004;
+ srcIpRange_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -1912,16 +3626,16 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * Name of a Compute Engine route.
+ * Source IP address range of the route. Policy based routes only.
*
*
- * string display_name = 1;
+ * string src_ip_range = 10;
*
* @return This builder for chaining.
*/
- public Builder clearDisplayName() {
- displayName_ = getDefaultInstance().getDisplayName();
- bitField0_ = (bitField0_ & ~0x00000004);
+ public Builder clearSrcIpRange() {
+ srcIpRange_ = getDefaultInstance().getSrcIpRange();
+ bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
@@ -1929,117 +3643,113 @@ public Builder clearDisplayName() {
*
*
*
- * Name of a Compute Engine route.
+ * Source IP address range of the route. Policy based routes only.
*
*
- * string display_name = 1;
+ * string src_ip_range = 10;
*
- * @param value The bytes for displayName to set.
+ * @param value The bytes for srcIpRange to set.
* @return This builder for chaining.
*/
- public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ public Builder setSrcIpRangeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- displayName_ = value;
- bitField0_ |= 0x00000004;
+ srcIpRange_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
- private java.lang.Object uri_ = "";
+ private com.google.protobuf.LazyStringArrayList destPortRanges_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDestPortRangesIsMutable() {
+ if (!destPortRanges_.isModifiable()) {
+ destPortRanges_ = new com.google.protobuf.LazyStringArrayList(destPortRanges_);
+ }
+ bitField0_ |= 0x00000800;
+ }
/**
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
- * Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * Destination port ranges of the route. Policy based routes only.
*
*
- * string uri = 2;
+ * repeated string dest_port_ranges = 11;
*
- * @return The uri.
+ * @return A list containing the destPortRanges.
*/
- public java.lang.String getUri() {
- java.lang.Object ref = uri_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- uri_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public com.google.protobuf.ProtocolStringList getDestPortRangesList() {
+ destPortRanges_.makeImmutable();
+ return destPortRanges_;
}
/**
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
- * Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * Destination port ranges of the route. Policy based routes only.
*
*
- * string uri = 2;
+ * repeated string dest_port_ranges = 11;
*
- * @return The bytes for uri.
+ * @return The count of destPortRanges.
*/
- public com.google.protobuf.ByteString getUriBytes() {
- java.lang.Object ref = uri_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- uri_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public int getDestPortRangesCount() {
+ return destPortRanges_.size();
}
/**
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
- * Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * Destination port ranges of the route. Policy based routes only.
*
*
- * string uri = 2;
+ * repeated string dest_port_ranges = 11;
*
- * @param value The uri to set.
- * @return This builder for chaining.
+ * @param index The index of the element to return.
+ * @return The destPortRanges at the given index.
*/
- public Builder setUri(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- uri_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
+ public java.lang.String getDestPortRanges(int index) {
+ return destPortRanges_.get(index);
}
/**
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
- * Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * Destination port ranges of the route. Policy based routes only.
*
*
- * string uri = 2;
+ * repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the destPortRanges at the given index.
+ */
+ public com.google.protobuf.ByteString getDestPortRangesBytes(int index) {
+ return destPortRanges_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
*
+ * repeated string dest_port_ranges = 11;
+ *
+ * @param index The index to set the value at.
+ * @param value The destPortRanges to set.
* @return This builder for chaining.
*/
- public Builder clearUri() {
- uri_ = getDefaultInstance().getUri();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public Builder setDestPortRanges(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDestPortRangesIsMutable();
+ destPortRanges_.set(index, value);
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2047,197 +3757,214 @@ public Builder clearUri() {
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
- * Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * Destination port ranges of the route. Policy based routes only.
*
*
- * string uri = 2;
+ * repeated string dest_port_ranges = 11;
*
- * @param value The bytes for uri to set.
+ * @param value The destPortRanges to add.
* @return This builder for chaining.
*/
- public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ public Builder addDestPortRanges(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- checkByteStringIsUtf8(value);
- uri_ = value;
- bitField0_ |= 0x00000008;
+ ensureDestPortRangesIsMutable();
+ destPortRanges_.add(value);
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
-
- private java.lang.Object destIpRange_ = "";
/**
*
*
*
- * Destination IP range of the route.
+ * Destination port ranges of the route. Policy based routes only.
*
*
- * string dest_ip_range = 3;
+ * repeated string dest_port_ranges = 11;
*
- * @return The destIpRange.
+ * @param values The destPortRanges to add.
+ * @return This builder for chaining.
*/
- public java.lang.String getDestIpRange() {
- java.lang.Object ref = destIpRange_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- destIpRange_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public Builder addAllDestPortRanges(java.lang.Iterable values) {
+ ensureDestPortRangesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destPortRanges_);
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Destination IP range of the route.
+ * Destination port ranges of the route. Policy based routes only.
*
*
- * string dest_ip_range = 3;
+ * repeated string dest_port_ranges = 11;
*
- * @return The bytes for destIpRange.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.ByteString getDestIpRangeBytes() {
- java.lang.Object ref = destIpRange_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- destIpRange_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public Builder clearDestPortRanges() {
+ destPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ ;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Destination IP range of the route.
+ * Destination port ranges of the route. Policy based routes only.
*
*
- * string dest_ip_range = 3;
+ * repeated string dest_port_ranges = 11;
*
- * @param value The destIpRange to set.
+ * @param value The bytes of the destPortRanges to add.
* @return This builder for chaining.
*/
- public Builder setDestIpRange(java.lang.String value) {
+ public Builder addDestPortRangesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- destIpRange_ = value;
- bitField0_ |= 0x00000010;
+ checkByteStringIsUtf8(value);
+ ensureDestPortRangesIsMutable();
+ destPortRanges_.add(value);
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
+
+ private com.google.protobuf.LazyStringArrayList srcPortRanges_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureSrcPortRangesIsMutable() {
+ if (!srcPortRanges_.isModifiable()) {
+ srcPortRanges_ = new com.google.protobuf.LazyStringArrayList(srcPortRanges_);
+ }
+ bitField0_ |= 0x00001000;
+ }
/**
*
*
*
- * Destination IP range of the route.
+ * Source port ranges of the route. Policy based routes only.
*
*
- * string dest_ip_range = 3;
+ * repeated string src_port_ranges = 12;
*
- * @return This builder for chaining.
+ * @return A list containing the srcPortRanges.
*/
- public Builder clearDestIpRange() {
- destIpRange_ = getDefaultInstance().getDestIpRange();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
+ public com.google.protobuf.ProtocolStringList getSrcPortRangesList() {
+ srcPortRanges_.makeImmutable();
+ return srcPortRanges_;
}
/**
*
*
*
- * Destination IP range of the route.
+ * Source port ranges of the route. Policy based routes only.
*
*
- * string dest_ip_range = 3;
+ * repeated string src_port_ranges = 12;
*
- * @param value The bytes for destIpRange to set.
- * @return This builder for chaining.
+ * @return The count of srcPortRanges.
*/
- public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- destIpRange_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
+ public int getSrcPortRangesCount() {
+ return srcPortRanges_.size();
}
-
- private java.lang.Object nextHop_ = "";
/**
*
*
*
- * Next hop of the route.
+ * Source port ranges of the route. Policy based routes only.
*
*
- * string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
- * @return The nextHop.
+ * @param index The index of the element to return.
+ * @return The srcPortRanges at the given index.
*/
- public java.lang.String getNextHop() {
- java.lang.Object ref = nextHop_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- nextHop_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public java.lang.String getSrcPortRanges(int index) {
+ return srcPortRanges_.get(index);
}
/**
*
*
*
- * Next hop of the route.
+ * Source port ranges of the route. Policy based routes only.
*
*
- * string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
- * @return The bytes for nextHop.
+ * @param index The index of the value to return.
+ * @return The bytes of the srcPortRanges at the given index.
*/
- public com.google.protobuf.ByteString getNextHopBytes() {
- java.lang.Object ref = nextHop_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- nextHop_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public com.google.protobuf.ByteString getSrcPortRangesBytes(int index) {
+ return srcPortRanges_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @param index The index to set the value at.
+ * @param value The srcPortRanges to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcPortRanges(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSrcPortRangesIsMutable();
+ srcPortRanges_.set(index, value);
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @param value The srcPortRanges to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSrcPortRanges(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureSrcPortRangesIsMutable();
+ srcPortRanges_.add(value);
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Next hop of the route.
+ * Source port ranges of the route. Policy based routes only.
*
*
- * string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
- * @param value The nextHop to set.
+ * @param values The srcPortRanges to add.
* @return This builder for chaining.
*/
- public Builder setNextHop(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- nextHop_ = value;
- bitField0_ |= 0x00000020;
+ public Builder addAllSrcPortRanges(java.lang.Iterable values) {
+ ensureSrcPortRangesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, srcPortRanges_);
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -2245,16 +3972,17 @@ public Builder setNextHop(java.lang.String value) {
*
*
*
- * Next hop of the route.
+ * Source port ranges of the route. Policy based routes only.
*
*
- * string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
* @return This builder for chaining.
*/
- public Builder clearNextHop() {
- nextHop_ = getDefaultInstance().getNextHop();
- bitField0_ = (bitField0_ & ~0x00000020);
+ public Builder clearSrcPortRanges() {
+ srcPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00001000);
+ ;
onChanged();
return this;
}
@@ -2262,105 +3990,114 @@ public Builder clearNextHop() {
*
*
*
- * Next hop of the route.
+ * Source port ranges of the route. Policy based routes only.
*
*
- * string next_hop = 4;
+ * repeated string src_port_ranges = 12;
*
- * @param value The bytes for nextHop to set.
+ * @param value The bytes of the srcPortRanges to add.
* @return This builder for chaining.
*/
- public Builder setNextHopBytes(com.google.protobuf.ByteString value) {
+ public Builder addSrcPortRangesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- nextHop_ = value;
- bitField0_ |= 0x00000020;
+ ensureSrcPortRangesIsMutable();
+ srcPortRanges_.add(value);
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
- private java.lang.Object networkUri_ = "";
+ private com.google.protobuf.LazyStringArrayList protocols_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureProtocolsIsMutable() {
+ if (!protocols_.isModifiable()) {
+ protocols_ = new com.google.protobuf.LazyStringArrayList(protocols_);
+ }
+ bitField0_ |= 0x00002000;
+ }
/**
*
*
*
- * URI of a Compute Engine network.
+ * Protocols of the route. Policy based routes only.
*
*
- * string network_uri = 5;
+ * repeated string protocols = 13;
*
- * @return The networkUri.
+ * @return A list containing the protocols.
*/
- public java.lang.String getNetworkUri() {
- java.lang.Object ref = networkUri_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- networkUri_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public com.google.protobuf.ProtocolStringList getProtocolsList() {
+ protocols_.makeImmutable();
+ return protocols_;
}
/**
*
*
*
- * URI of a Compute Engine network.
+ * Protocols of the route. Policy based routes only.
*
*
- * string network_uri = 5;
+ * repeated string protocols = 13;
*
- * @return The bytes for networkUri.
+ * @return The count of protocols.
*/
- public com.google.protobuf.ByteString getNetworkUriBytes() {
- java.lang.Object ref = networkUri_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- networkUri_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public int getProtocolsCount() {
+ return protocols_.size();
}
/**
*
*
*
- * URI of a Compute Engine network.
+ * Protocols of the route. Policy based routes only.
*
*
- * string network_uri = 5;
+ * repeated string protocols = 13;
*
- * @param value The networkUri to set.
- * @return This builder for chaining.
+ * @param index The index of the element to return.
+ * @return The protocols at the given index.
*/
- public Builder setNetworkUri(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- networkUri_ = value;
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
+ public java.lang.String getProtocols(int index) {
+ return protocols_.get(index);
}
/**
*
*
*
- * URI of a Compute Engine network.
+ * Protocols of the route. Policy based routes only.
*
*
- * string network_uri = 5;
+ * repeated string protocols = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the protocols at the given index.
+ */
+ public com.google.protobuf.ByteString getProtocolsBytes(int index) {
+ return protocols_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Protocols of the route. Policy based routes only.
+ *
*
+ * repeated string protocols = 13;
+ *
+ * @param index The index to set the value at.
+ * @param value The protocols to set.
* @return This builder for chaining.
*/
- public Builder clearNetworkUri() {
- networkUri_ = getDefaultInstance().getNetworkUri();
- bitField0_ = (bitField0_ & ~0x00000040);
+ public Builder setProtocols(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProtocolsIsMutable();
+ protocols_.set(index, value);
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -2368,57 +4105,58 @@ public Builder clearNetworkUri() {
*
*
*
- * URI of a Compute Engine network.
+ * Protocols of the route. Policy based routes only.
*
*
- * string network_uri = 5;
+ * repeated string protocols = 13;
*
- * @param value The bytes for networkUri to set.
+ * @param value The protocols to add.
* @return This builder for chaining.
*/
- public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
+ public Builder addProtocols(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- checkByteStringIsUtf8(value);
- networkUri_ = value;
- bitField0_ |= 0x00000040;
+ ensureProtocolsIsMutable();
+ protocols_.add(value);
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
-
- private int priority_;
/**
*
*
*
- * Priority of the route.
+ * Protocols of the route. Policy based routes only.
*
*
- * int32 priority = 6;
+ * repeated string protocols = 13;
*
- * @return The priority.
+ * @param values The protocols to add.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public int getPriority() {
- return priority_;
+ public Builder addAllProtocols(java.lang.Iterable values) {
+ ensureProtocolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, protocols_);
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Priority of the route.
+ * Protocols of the route. Policy based routes only.
*
*
- * int32 priority = 6;
+ * repeated string protocols = 13;
*
- * @param value The priority to set.
* @return This builder for chaining.
*/
- public Builder setPriority(int value) {
-
- priority_ = value;
- bitField0_ |= 0x00000080;
+ public Builder clearProtocols() {
+ protocols_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00002000);
+ ;
onChanged();
return this;
}
@@ -2426,108 +4164,120 @@ public Builder setPriority(int value) {
*
*
*
- * Priority of the route.
+ * Protocols of the route. Policy based routes only.
*
*
- * int32 priority = 6;
+ * repeated string protocols = 13;
*
+ * @param value The bytes of the protocols to add.
* @return This builder for chaining.
*/
- public Builder clearPriority() {
- bitField0_ = (bitField0_ & ~0x00000080);
- priority_ = 0;
+ public Builder addProtocolsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureProtocolsIsMutable();
+ protocols_.add(value);
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList instanceTags_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
-
- private void ensureInstanceTagsIsMutable() {
- if (!instanceTags_.isModifiable()) {
- instanceTags_ = new com.google.protobuf.LazyStringArrayList(instanceTags_);
- }
- bitField0_ |= 0x00000100;
- }
+ private java.lang.Object nccHubUri_ = "";
/**
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Hub. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @return A list containing the instanceTags.
+ * @return Whether the nccHubUri field is set.
*/
- public com.google.protobuf.ProtocolStringList getInstanceTagsList() {
- instanceTags_.makeImmutable();
- return instanceTags_;
+ public boolean hasNccHubUri() {
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Hub. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @return The count of instanceTags.
+ * @return The nccHubUri.
*/
- public int getInstanceTagsCount() {
- return instanceTags_.size();
+ public java.lang.String getNccHubUri() {
+ java.lang.Object ref = nccHubUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nccHubUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Hub. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @param index The index of the element to return.
- * @return The instanceTags at the given index.
+ * @return The bytes for nccHubUri.
*/
- public java.lang.String getInstanceTags(int index) {
- return instanceTags_.get(index);
+ public com.google.protobuf.ByteString getNccHubUriBytes() {
+ java.lang.Object ref = nccHubUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nccHubUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
/**
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Hub. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @param index The index of the value to return.
- * @return The bytes of the instanceTags at the given index.
+ * @param value The nccHubUri to set.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.ByteString getInstanceTagsBytes(int index) {
- return instanceTags_.getByteString(index);
+ public Builder setNccHubUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nccHubUri_ = value;
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Hub. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @param index The index to set the value at.
- * @param value The instanceTags to set.
* @return This builder for chaining.
*/
- public Builder setInstanceTags(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureInstanceTagsIsMutable();
- instanceTags_.set(index, value);
- bitField0_ |= 0x00000100;
+ public Builder clearNccHubUri() {
+ nccHubUri_ = getDefaultInstance().getNccHubUri();
+ bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
@@ -2535,40 +4285,102 @@ public Builder setInstanceTags(int index, java.lang.String value) {
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Hub. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_hub_uri = 15;
*
- * @param value The instanceTags to add.
+ * @param value The bytes for nccHubUri to set.
* @return This builder for chaining.
*/
- public Builder addInstanceTags(java.lang.String value) {
+ public Builder setNccHubUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- ensureInstanceTagsIsMutable();
- instanceTags_.add(value);
- bitField0_ |= 0x00000100;
+ checkByteStringIsUtf8(value);
+ nccHubUri_ = value;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
+
+ private java.lang.Object nccSpokeUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @return Whether the nccSpokeUri field is set.
+ */
+ public boolean hasNccSpokeUri() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
/**
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Spoke. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_spoke_uri = 16;
*
- * @param values The instanceTags to add.
+ * @return The nccSpokeUri.
+ */
+ public java.lang.String getNccSpokeUri() {
+ java.lang.Object ref = nccSpokeUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nccSpokeUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @return The bytes for nccSpokeUri.
+ */
+ public com.google.protobuf.ByteString getNccSpokeUriBytes() {
+ java.lang.Object ref = nccSpokeUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nccSpokeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @param value The nccSpokeUri to set.
* @return This builder for chaining.
*/
- public Builder addAllInstanceTags(java.lang.Iterable values) {
- ensureInstanceTagsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceTags_);
- bitField0_ |= 0x00000100;
+ public Builder setNccSpokeUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nccSpokeUri_ = value;
+ bitField0_ |= 0x00008000;
onChanged();
return this;
}
@@ -2576,17 +4388,16 @@ public Builder addAllInstanceTags(java.lang.Iterable values) {
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Spoke. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_spoke_uri = 16;
*
* @return This builder for chaining.
*/
- public Builder clearInstanceTags() {
- instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- ;
+ public Builder clearNccSpokeUri() {
+ nccSpokeUri_ = getDefaultInstance().getNccSpokeUri();
+ bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
@@ -2594,22 +4405,21 @@ public Builder clearInstanceTags() {
*
*
*
- * Instance tags of the route.
+ * URI of a NCC Spoke. NCC_HUB routes only.
*
*
- * repeated string instance_tags = 7;
+ * optional string ncc_spoke_uri = 16;
*
- * @param value The bytes of the instanceTags to add.
+ * @param value The bytes for nccSpokeUri to set.
* @return This builder for chaining.
*/
- public Builder addInstanceTagsBytes(com.google.protobuf.ByteString value) {
+ public Builder setNccSpokeUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- ensureInstanceTagsIsMutable();
- instanceTags_.add(value);
- bitField0_ |= 0x00000100;
+ nccSpokeUri_ = value;
+ bitField0_ |= 0x00008000;
onChanged();
return this;
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java
index 8a1303bf78f9..8109187a8a3d 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java
@@ -77,7 +77,32 @@ public interface RouteInfoOrBuilder
*
*
*
- * Name of a Compute Engine route.
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The enum numeric value on the wire for routeScope.
+ */
+ int getRouteScopeValue();
+ /**
+ *
+ *
+ *
+ * Indicates where route is applicable.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope route_scope = 14;
+ *
+ * @return The routeScope.
+ */
+ com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope getRouteScope();
+
+ /**
+ *
+ *
+ *
+ * Name of a route.
*
*
* string display_name = 1;
@@ -89,7 +114,7 @@ public interface RouteInfoOrBuilder
*
*
*
- * Name of a Compute Engine route.
+ * Name of a route.
*
*
* string display_name = 1;
@@ -102,10 +127,10 @@ public interface RouteInfoOrBuilder
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
* Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * not have an URI.
*
*
* string uri = 2;
@@ -117,10 +142,10 @@ public interface RouteInfoOrBuilder
*
*
*
- * URI of a Compute Engine route.
- * Dynamic route from cloud router does not have a URI.
+ * URI of a route.
+ * Dynamic, peering static and peering dynamic routes do not have an URI.
* Advertised route from Google Cloud VPC to on-premises network also does
- * not have a URI.
+ * not have an URI.
*
*
* string uri = 2;
@@ -183,7 +208,7 @@ public interface RouteInfoOrBuilder
*
*
*
- * URI of a Compute Engine network.
+ * URI of a Compute Engine network. NETWORK routes only.
*
*
* string network_uri = 5;
@@ -195,7 +220,7 @@ public interface RouteInfoOrBuilder
*
*
*
- * URI of a Compute Engine network.
+ * URI of a Compute Engine network. NETWORK routes only.
*
*
* string network_uri = 5;
@@ -267,4 +292,256 @@ public interface RouteInfoOrBuilder
* @return The bytes of the instanceTags at the given index.
*/
com.google.protobuf.ByteString getInstanceTagsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Source IP address range of the route. Policy based routes only.
+ *
+ *
+ * string src_ip_range = 10;
+ *
+ * @return The srcIpRange.
+ */
+ java.lang.String getSrcIpRange();
+ /**
+ *
+ *
+ *
+ * Source IP address range of the route. Policy based routes only.
+ *
+ *
+ * string src_ip_range = 10;
+ *
+ * @return The bytes for srcIpRange.
+ */
+ com.google.protobuf.ByteString getSrcIpRangeBytes();
+
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string dest_port_ranges = 11;
+ *
+ * @return A list containing the destPortRanges.
+ */
+ java.util.List getDestPortRangesList();
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string dest_port_ranges = 11;
+ *
+ * @return The count of destPortRanges.
+ */
+ int getDestPortRangesCount();
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The destPortRanges at the given index.
+ */
+ java.lang.String getDestPortRanges(int index);
+ /**
+ *
+ *
+ *
+ * Destination port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string dest_port_ranges = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the destPortRanges at the given index.
+ */
+ com.google.protobuf.ByteString getDestPortRangesBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @return A list containing the srcPortRanges.
+ */
+ java.util.List getSrcPortRangesList();
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @return The count of srcPortRanges.
+ */
+ int getSrcPortRangesCount();
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @param index The index of the element to return.
+ * @return The srcPortRanges at the given index.
+ */
+ java.lang.String getSrcPortRanges(int index);
+ /**
+ *
+ *
+ *
+ * Source port ranges of the route. Policy based routes only.
+ *
+ *
+ * repeated string src_port_ranges = 12;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the srcPortRanges at the given index.
+ */
+ com.google.protobuf.ByteString getSrcPortRangesBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Protocols of the route. Policy based routes only.
+ *
+ *
+ * repeated string protocols = 13;
+ *
+ * @return A list containing the protocols.
+ */
+ java.util.List getProtocolsList();
+ /**
+ *
+ *
+ *
+ * Protocols of the route. Policy based routes only.
+ *
+ *
+ * repeated string protocols = 13;
+ *
+ * @return The count of protocols.
+ */
+ int getProtocolsCount();
+ /**
+ *
+ *
+ *
+ * Protocols of the route. Policy based routes only.
+ *
+ *
+ * repeated string protocols = 13;
+ *
+ * @param index The index of the element to return.
+ * @return The protocols at the given index.
+ */
+ java.lang.String getProtocols(int index);
+ /**
+ *
+ *
+ *
+ * Protocols of the route. Policy based routes only.
+ *
+ *
+ * repeated string protocols = 13;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the protocols at the given index.
+ */
+ com.google.protobuf.ByteString getProtocolsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * URI of a NCC Hub. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_hub_uri = 15;
+ *
+ * @return Whether the nccHubUri field is set.
+ */
+ boolean hasNccHubUri();
+ /**
+ *
+ *
+ *
+ * URI of a NCC Hub. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_hub_uri = 15;
+ *
+ * @return The nccHubUri.
+ */
+ java.lang.String getNccHubUri();
+ /**
+ *
+ *
+ *
+ * URI of a NCC Hub. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_hub_uri = 15;
+ *
+ * @return The bytes for nccHubUri.
+ */
+ com.google.protobuf.ByteString getNccHubUriBytes();
+
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @return Whether the nccSpokeUri field is set.
+ */
+ boolean hasNccSpokeUri();
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @return The nccSpokeUri.
+ */
+ java.lang.String getNccSpokeUri();
+ /**
+ *
+ *
+ *
+ * URI of a NCC Spoke. NCC_HUB routes only.
+ *
+ *
+ * optional string ncc_spoke_uri = 16;
+ *
+ * @return The bytes for nccSpokeUri.
+ */
+ com.google.protobuf.ByteString getNccSpokeUriBytes();
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java
index 3cadee0b975c..70ca30191304 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java
@@ -108,6 +108,19 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
* START_FROM_INTERNET = 2;
*/
START_FROM_INTERNET(2),
+ /**
+ *
+ *
+ *
+ * Initial state: packet originating from a Google service. Some Google
+ * services, such as health check probers or Identity Aware Proxy use
+ * special routes, outside VPC routing configuration to reach Compute Engine
+ * Instances.
+ *
+ *
+ * START_FROM_GOOGLE_SERVICE = 27;
+ */
+ START_FROM_GOOGLE_SERVICE(27),
/**
*
*
@@ -147,13 +160,35 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Initial state: packet originating from a Cloud function.
+ * Initial state: packet originating from a Cloud Function.
* A CloudFunctionInfo is populated with starting function information.
*
*
* START_FROM_CLOUD_FUNCTION = 23;
*/
START_FROM_CLOUD_FUNCTION(23),
+ /**
+ *
+ *
+ *
+ * Initial state: packet originating from an App Engine service version.
+ * An AppEngineVersionInfo is populated with starting version information.
+ *
+ *
+ * START_FROM_APP_ENGINE_VERSION = 25;
+ */
+ START_FROM_APP_ENGINE_VERSION(25),
+ /**
+ *
+ *
+ *
+ * Initial state: packet originating from a Cloud Run revision.
+ * A CloudRunRevisionInfo is populated with starting revision information.
+ *
+ *
+ * START_FROM_CLOUD_RUN_REVISION = 26;
+ */
+ START_FROM_CLOUD_RUN_REVISION(26),
/**
*
*
@@ -373,6 +408,19 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
* START_FROM_INTERNET = 2;
*/
public static final int START_FROM_INTERNET_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Initial state: packet originating from a Google service. Some Google
+ * services, such as health check probers or Identity Aware Proxy use
+ * special routes, outside VPC routing configuration to reach Compute Engine
+ * Instances.
+ *
+ *
+ * START_FROM_GOOGLE_SERVICE = 27;
+ */
+ public static final int START_FROM_GOOGLE_SERVICE_VALUE = 27;
/**
*
*
@@ -412,13 +460,35 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Initial state: packet originating from a Cloud function.
+ * Initial state: packet originating from a Cloud Function.
* A CloudFunctionInfo is populated with starting function information.
*
*
* START_FROM_CLOUD_FUNCTION = 23;
*/
public static final int START_FROM_CLOUD_FUNCTION_VALUE = 23;
+ /**
+ *
+ *
+ *
+ * Initial state: packet originating from an App Engine service version.
+ * An AppEngineVersionInfo is populated with starting version information.
+ *
+ *
+ * START_FROM_APP_ENGINE_VERSION = 25;
+ */
+ public static final int START_FROM_APP_ENGINE_VERSION_VALUE = 25;
+ /**
+ *
+ *
+ *
+ * Initial state: packet originating from a Cloud Run revision.
+ * A CloudRunRevisionInfo is populated with starting revision information.
+ *
+ *
+ * START_FROM_CLOUD_RUN_REVISION = 26;
+ */
+ public static final int START_FROM_CLOUD_RUN_REVISION_VALUE = 26;
/**
*
*
@@ -634,6 +704,8 @@ public static State forNumber(int value) {
return START_FROM_INSTANCE;
case 2:
return START_FROM_INTERNET;
+ case 27:
+ return START_FROM_GOOGLE_SERVICE;
case 3:
return START_FROM_PRIVATE_NETWORK;
case 21:
@@ -642,6 +714,10 @@ public static State forNumber(int value) {
return START_FROM_CLOUD_SQL_INSTANCE;
case 23:
return START_FROM_CLOUD_FUNCTION;
+ case 25:
+ return START_FROM_APP_ENGINE_VERSION;
+ case 26:
+ return START_FROM_CLOUD_RUN_REVISION;
case 4:
return APPLY_INGRESS_FIREWALL_RULE;
case 5:
@@ -744,6 +820,7 @@ public enum StepInfoCase
FIREWALL(6),
ROUTE(7),
ENDPOINT(8),
+ GOOGLE_SERVICE(24),
FORWARDING_RULE(9),
VPN_GATEWAY(10),
VPN_TUNNEL(11),
@@ -757,6 +834,8 @@ public enum StepInfoCase
GKE_MASTER(18),
CLOUD_SQL_INSTANCE(19),
CLOUD_FUNCTION(20),
+ APP_ENGINE_VERSION(22),
+ CLOUD_RUN_REVISION(23),
STEPINFO_NOT_SET(0);
private final int value;
@@ -783,6 +862,8 @@ public static StepInfoCase forNumber(int value) {
return ROUTE;
case 8:
return ENDPOINT;
+ case 24:
+ return GOOGLE_SERVICE;
case 9:
return FORWARDING_RULE;
case 10:
@@ -809,6 +890,10 @@ public static StepInfoCase forNumber(int value) {
return CLOUD_SQL_INSTANCE;
case 20:
return CLOUD_FUNCTION;
+ case 22:
+ return APP_ENGINE_VERSION;
+ case 23:
+ return CLOUD_RUN_REVISION;
case 0:
return STEPINFO_NOT_SET;
default:
@@ -1195,6 +1280,58 @@ public com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder getEndpo
return com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance();
}
+ public static final int GOOGLE_SERVICE_FIELD_NUMBER = 24;
+ /**
+ *
+ *
+ *
+ * Display information of a Google service
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
+ *
+ * @return Whether the googleService field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogleService() {
+ return stepInfoCase_ == 24;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Google service
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
+ *
+ * @return The googleService.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo getGoogleService() {
+ if (stepInfoCase_ == 24) {
+ return (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Google service
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder
+ getGoogleServiceOrBuilder() {
+ if (stepInfoCase_ == 24) {
+ return (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();
+ }
+
public static final int FORWARDING_RULE_FIELD_NUMBER = 9;
/**
*
@@ -1820,7 +1957,7 @@ public com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo getCloudS
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -1835,7 +1972,7 @@ public boolean hasCloudFunction() {
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -1853,7 +1990,7 @@ public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo getCloudFunc
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -1867,6 +2004,116 @@ public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo getCloudFunc
return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance();
}
+ public static final int APP_ENGINE_VERSION_FIELD_NUMBER = 22;
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasAppEngineVersion() {
+ return stepInfoCase_ == 22;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo getAppEngineVersion() {
+ if (stepInfoCase_ == 22) {
+ return (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoOrBuilder
+ getAppEngineVersionOrBuilder() {
+ if (stepInfoCase_ == 22) {
+ return (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.getDefaultInstance();
+ }
+
+ public static final int CLOUD_RUN_REVISION_FIELD_NUMBER = 23;
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudRunRevision() {
+ return stepInfoCase_ == 23;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo getCloudRunRevision() {
+ if (stepInfoCase_ == 23) {
+ return (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ if (stepInfoCase_ == 23) {
+ return (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1951,6 +2198,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
21, (com.google.cloud.networkmanagement.v1beta1.VpcConnectorInfo) stepInfo_);
}
+ if (stepInfoCase_ == 22) {
+ output.writeMessage(
+ 22, (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 23) {
+ output.writeMessage(
+ 23, (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 24) {
+ output.writeMessage(
+ 24, (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_);
+ }
getUnknownFields().writeTo(output);
}
@@ -2058,6 +2317,21 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
21, (com.google.cloud.networkmanagement.v1beta1.VpcConnectorInfo) stepInfo_);
}
+ if (stepInfoCase_ == 22) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 22, (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 23) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 23, (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_);
+ }
+ if (stepInfoCase_ == 24) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 24, (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2092,6 +2366,9 @@ public boolean equals(final java.lang.Object obj) {
case 8:
if (!getEndpoint().equals(other.getEndpoint())) return false;
break;
+ case 24:
+ if (!getGoogleService().equals(other.getGoogleService())) return false;
+ break;
case 9:
if (!getForwardingRule().equals(other.getForwardingRule())) return false;
break;
@@ -2131,6 +2408,12 @@ public boolean equals(final java.lang.Object obj) {
case 20:
if (!getCloudFunction().equals(other.getCloudFunction())) return false;
break;
+ case 22:
+ if (!getAppEngineVersion().equals(other.getAppEngineVersion())) return false;
+ break;
+ case 23:
+ if (!getCloudRunRevision().equals(other.getCloudRunRevision())) return false;
+ break;
case 0:
default:
}
@@ -2170,6 +2453,10 @@ public int hashCode() {
hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getEndpoint().hashCode();
break;
+ case 24:
+ hash = (37 * hash) + GOOGLE_SERVICE_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogleService().hashCode();
+ break;
case 9:
hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER;
hash = (53 * hash) + getForwardingRule().hashCode();
@@ -2222,6 +2509,14 @@ public int hashCode() {
hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + getCloudFunction().hashCode();
break;
+ case 22:
+ hash = (37 * hash) + APP_ENGINE_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getAppEngineVersion().hashCode();
+ break;
+ case 23:
+ hash = (37 * hash) + CLOUD_RUN_REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudRunRevision().hashCode();
+ break;
case 0:
default:
}
@@ -2381,6 +2676,9 @@ public Builder clear() {
if (endpointBuilder_ != null) {
endpointBuilder_.clear();
}
+ if (googleServiceBuilder_ != null) {
+ googleServiceBuilder_.clear();
+ }
if (forwardingRuleBuilder_ != null) {
forwardingRuleBuilder_.clear();
}
@@ -2420,6 +2718,12 @@ public Builder clear() {
if (cloudFunctionBuilder_ != null) {
cloudFunctionBuilder_.clear();
}
+ if (appEngineVersionBuilder_ != null) {
+ appEngineVersionBuilder_.clear();
+ }
+ if (cloudRunRevisionBuilder_ != null) {
+ cloudRunRevisionBuilder_.clear();
+ }
stepInfoCase_ = 0;
stepInfo_ = null;
return this;
@@ -2488,6 +2792,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1beta1.Step
if (stepInfoCase_ == 8 && endpointBuilder_ != null) {
result.stepInfo_ = endpointBuilder_.build();
}
+ if (stepInfoCase_ == 24 && googleServiceBuilder_ != null) {
+ result.stepInfo_ = googleServiceBuilder_.build();
+ }
if (stepInfoCase_ == 9 && forwardingRuleBuilder_ != null) {
result.stepInfo_ = forwardingRuleBuilder_.build();
}
@@ -2527,6 +2834,12 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1beta1.Step
if (stepInfoCase_ == 20 && cloudFunctionBuilder_ != null) {
result.stepInfo_ = cloudFunctionBuilder_.build();
}
+ if (stepInfoCase_ == 22 && appEngineVersionBuilder_ != null) {
+ result.stepInfo_ = appEngineVersionBuilder_.build();
+ }
+ if (stepInfoCase_ == 23 && cloudRunRevisionBuilder_ != null) {
+ result.stepInfo_ = cloudRunRevisionBuilder_.build();
+ }
}
@java.lang.Override
@@ -2612,6 +2925,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other)
mergeEndpoint(other.getEndpoint());
break;
}
+ case GOOGLE_SERVICE:
+ {
+ mergeGoogleService(other.getGoogleService());
+ break;
+ }
case FORWARDING_RULE:
{
mergeForwardingRule(other.getForwardingRule());
@@ -2677,6 +2995,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other)
mergeCloudFunction(other.getCloudFunction());
break;
}
+ case APP_ENGINE_VERSION:
+ {
+ mergeAppEngineVersion(other.getAppEngineVersion());
+ break;
+ }
+ case CLOUD_RUN_REVISION:
+ {
+ mergeCloudRunRevision(other.getCloudRunRevision());
+ break;
+ }
case STEPINFO_NOT_SET:
{
break;
@@ -2835,6 +3163,26 @@ public Builder mergeFrom(
stepInfoCase_ = 21;
break;
} // case 170
+ case 178:
+ {
+ input.readMessage(
+ getAppEngineVersionFieldBuilder().getBuilder(), extensionRegistry);
+ stepInfoCase_ = 22;
+ break;
+ } // case 178
+ case 186:
+ {
+ input.readMessage(
+ getCloudRunRevisionFieldBuilder().getBuilder(), extensionRegistry);
+ stepInfoCase_ = 23;
+ break;
+ } // case 186
+ case 194:
+ {
+ input.readMessage(getGoogleServiceFieldBuilder().getBuilder(), extensionRegistry);
+ stepInfoCase_ = 24;
+ break;
+ } // case 194
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4093,112 +4441,112 @@ public com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder getEndpo
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo,
- com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.Builder,
- com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfoOrBuilder>
- forwardingRuleBuilder_;
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo,
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder>
+ googleServiceBuilder_;
/**
*
*
*
- * Display information of a Compute Engine forwarding rule.
+ * Display information of a Google service
*
*
- * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
*
- * @return Whether the forwardingRule field is set.
+ * @return Whether the googleService field is set.
*/
@java.lang.Override
- public boolean hasForwardingRule() {
- return stepInfoCase_ == 9;
+ public boolean hasGoogleService() {
+ return stepInfoCase_ == 24;
}
/**
*
*
*
- * Display information of a Compute Engine forwarding rule.
+ * Display information of a Google service
*
*
- * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
*
- * @return The forwardingRule.
+ * @return The googleService.
*/
@java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo getForwardingRule() {
- if (forwardingRuleBuilder_ == null) {
- if (stepInfoCase_ == 9) {
- return (com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo) stepInfo_;
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo getGoogleService() {
+ if (googleServiceBuilder_ == null) {
+ if (stepInfoCase_ == 24) {
+ return (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_;
}
- return com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.getDefaultInstance();
+ return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();
} else {
- if (stepInfoCase_ == 9) {
- return forwardingRuleBuilder_.getMessage();
+ if (stepInfoCase_ == 24) {
+ return googleServiceBuilder_.getMessage();
}
- return com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.getDefaultInstance();
+ return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();
}
}
/**
*
*
*
- * Display information of a Compute Engine forwarding rule.
+ * Display information of a Google service
*
*
- * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
*/
- public Builder setForwardingRule(
- com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo value) {
- if (forwardingRuleBuilder_ == null) {
+ public Builder setGoogleService(
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo value) {
+ if (googleServiceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stepInfo_ = value;
onChanged();
} else {
- forwardingRuleBuilder_.setMessage(value);
+ googleServiceBuilder_.setMessage(value);
}
- stepInfoCase_ = 9;
+ stepInfoCase_ = 24;
return this;
}
/**
*
*
*
- * Display information of a Compute Engine forwarding rule.
+ * Display information of a Google service
*
*
- * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
*/
- public Builder setForwardingRule(
- com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.Builder builderForValue) {
- if (forwardingRuleBuilder_ == null) {
+ public Builder setGoogleService(
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.Builder builderForValue) {
+ if (googleServiceBuilder_ == null) {
stepInfo_ = builderForValue.build();
onChanged();
} else {
- forwardingRuleBuilder_.setMessage(builderForValue.build());
+ googleServiceBuilder_.setMessage(builderForValue.build());
}
- stepInfoCase_ = 9;
+ stepInfoCase_ = 24;
return this;
}
/**
*
*
*
- * Display information of a Compute Engine forwarding rule.
+ * Display information of a Google service
*
*
- * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
*/
- public Builder mergeForwardingRule(
- com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo value) {
- if (forwardingRuleBuilder_ == null) {
- if (stepInfoCase_ == 9
+ public Builder mergeGoogleService(
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo value) {
+ if (googleServiceBuilder_ == null) {
+ if (stepInfoCase_ == 24
&& stepInfo_
- != com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo
+ != com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo
.getDefaultInstance()) {
stepInfo_ =
- com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.newBuilder(
- (com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo) stepInfo_)
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -4206,37 +4554,37 @@ public Builder mergeForwardingRule(
}
onChanged();
} else {
- if (stepInfoCase_ == 9) {
- forwardingRuleBuilder_.mergeFrom(value);
+ if (stepInfoCase_ == 24) {
+ googleServiceBuilder_.mergeFrom(value);
} else {
- forwardingRuleBuilder_.setMessage(value);
+ googleServiceBuilder_.setMessage(value);
}
}
- stepInfoCase_ = 9;
+ stepInfoCase_ = 24;
return this;
}
/**
*
*
*
- * Display information of a Compute Engine forwarding rule.
+ * Display information of a Google service
*
*
- * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
*/
- public Builder clearForwardingRule() {
- if (forwardingRuleBuilder_ == null) {
- if (stepInfoCase_ == 9) {
+ public Builder clearGoogleService() {
+ if (googleServiceBuilder_ == null) {
+ if (stepInfoCase_ == 24) {
stepInfoCase_ = 0;
stepInfo_ = null;
onChanged();
}
} else {
- if (stepInfoCase_ == 9) {
+ if (stepInfoCase_ == 24) {
stepInfoCase_ = 0;
stepInfo_ = null;
}
- forwardingRuleBuilder_.clear();
+ googleServiceBuilder_.clear();
}
return this;
}
@@ -4244,29 +4592,245 @@ public Builder clearForwardingRule() {
*
*
*
- * Display information of a Compute Engine forwarding rule.
+ * Display information of a Google service
*
*
- * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
*/
- public com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.Builder
- getForwardingRuleBuilder() {
- return getForwardingRuleFieldBuilder().getBuilder();
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.Builder
+ getGoogleServiceBuilder() {
+ return getGoogleServiceFieldBuilder().getBuilder();
}
/**
*
*
*
- * Display information of a Compute Engine forwarding rule.
+ * Display information of a Google service
*
*
- * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
*/
@java.lang.Override
- public com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfoOrBuilder
- getForwardingRuleOrBuilder() {
- if ((stepInfoCase_ == 9) && (forwardingRuleBuilder_ != null)) {
- return forwardingRuleBuilder_.getMessageOrBuilder();
+ public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder
+ getGoogleServiceOrBuilder() {
+ if ((stepInfoCase_ == 24) && (googleServiceBuilder_ != null)) {
+ return googleServiceBuilder_.getMessageOrBuilder();
+ } else {
+ if (stepInfoCase_ == 24) {
+ return (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Google service
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo,
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder>
+ getGoogleServiceFieldBuilder() {
+ if (googleServiceBuilder_ == null) {
+ if (!(stepInfoCase_ == 24)) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.getDefaultInstance();
+ }
+ googleServiceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo,
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_,
+ getParentForChildren(),
+ isClean());
+ stepInfo_ = null;
+ }
+ stepInfoCase_ = 24;
+ onChanged();
+ return googleServiceBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo,
+ com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfoOrBuilder>
+ forwardingRuleBuilder_;
+ /**
+ *
+ *
+ *
+ * Display information of a Compute Engine forwarding rule.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ *
+ * @return Whether the forwardingRule field is set.
+ */
+ @java.lang.Override
+ public boolean hasForwardingRule() {
+ return stepInfoCase_ == 9;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Compute Engine forwarding rule.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ *
+ * @return The forwardingRule.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo getForwardingRule() {
+ if (forwardingRuleBuilder_ == null) {
+ if (stepInfoCase_ == 9) {
+ return (com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.getDefaultInstance();
+ } else {
+ if (stepInfoCase_ == 9) {
+ return forwardingRuleBuilder_.getMessage();
+ }
+ return com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Compute Engine forwarding rule.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ */
+ public Builder setForwardingRule(
+ com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo value) {
+ if (forwardingRuleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stepInfo_ = value;
+ onChanged();
+ } else {
+ forwardingRuleBuilder_.setMessage(value);
+ }
+ stepInfoCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Compute Engine forwarding rule.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ */
+ public Builder setForwardingRule(
+ com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.Builder builderForValue) {
+ if (forwardingRuleBuilder_ == null) {
+ stepInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ forwardingRuleBuilder_.setMessage(builderForValue.build());
+ }
+ stepInfoCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Compute Engine forwarding rule.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ */
+ public Builder mergeForwardingRule(
+ com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo value) {
+ if (forwardingRuleBuilder_ == null) {
+ if (stepInfoCase_ == 9
+ && stepInfo_
+ != com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo
+ .getDefaultInstance()) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo) stepInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ stepInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (stepInfoCase_ == 9) {
+ forwardingRuleBuilder_.mergeFrom(value);
+ } else {
+ forwardingRuleBuilder_.setMessage(value);
+ }
+ }
+ stepInfoCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Compute Engine forwarding rule.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ */
+ public Builder clearForwardingRule() {
+ if (forwardingRuleBuilder_ == null) {
+ if (stepInfoCase_ == 9) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (stepInfoCase_ == 9) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ }
+ forwardingRuleBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Compute Engine forwarding rule.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ */
+ public com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.Builder
+ getForwardingRuleBuilder() {
+ return getForwardingRuleFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Compute Engine forwarding rule.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo forwarding_rule = 9;
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfoOrBuilder
+ getForwardingRuleOrBuilder() {
+ if ((stepInfoCase_ == 9) && (forwardingRuleBuilder_ != null)) {
+ return forwardingRuleBuilder_.getMessageOrBuilder();
} else {
if (stepInfoCase_ == 9) {
return (com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo) stepInfo_;
@@ -6660,7 +7224,7 @@ public Builder clearCloudSqlInstance() {
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6675,7 +7239,7 @@ public boolean hasCloudFunction() {
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6700,7 +7264,7 @@ public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo getCloudFunc
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6723,7 +7287,7 @@ public Builder setCloudFunction(
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6743,7 +7307,7 @@ public Builder setCloudFunction(
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6778,7 +7342,7 @@ public Builder mergeCloudFunction(
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6803,7 +7367,7 @@ public Builder clearCloudFunction() {
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6816,7 +7380,7 @@ public Builder clearCloudFunction() {
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6837,7 +7401,7 @@ public Builder clearCloudFunction() {
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -6867,6 +7431,456 @@ public Builder clearCloudFunction() {
return cloudFunctionBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo,
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoOrBuilder>
+ appEngineVersionBuilder_;
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasAppEngineVersion() {
+ return stepInfoCase_ == 22;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo getAppEngineVersion() {
+ if (appEngineVersionBuilder_ == null) {
+ if (stepInfoCase_ == 22) {
+ return (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.getDefaultInstance();
+ } else {
+ if (stepInfoCase_ == 22) {
+ return appEngineVersionBuilder_.getMessage();
+ }
+ return com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ public Builder setAppEngineVersion(
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stepInfo_ = value;
+ onChanged();
+ } else {
+ appEngineVersionBuilder_.setMessage(value);
+ }
+ stepInfoCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ public Builder setAppEngineVersion(
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.Builder builderForValue) {
+ if (appEngineVersionBuilder_ == null) {
+ stepInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ appEngineVersionBuilder_.setMessage(builderForValue.build());
+ }
+ stepInfoCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ public Builder mergeAppEngineVersion(
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (stepInfoCase_ == 22
+ && stepInfo_
+ != com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo
+ .getDefaultInstance()) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ stepInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (stepInfoCase_ == 22) {
+ appEngineVersionBuilder_.mergeFrom(value);
+ } else {
+ appEngineVersionBuilder_.setMessage(value);
+ }
+ }
+ stepInfoCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ public Builder clearAppEngineVersion() {
+ if (appEngineVersionBuilder_ == null) {
+ if (stepInfoCase_ == 22) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (stepInfoCase_ == 22) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ }
+ appEngineVersionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.Builder
+ getAppEngineVersionBuilder() {
+ return getAppEngineVersionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoOrBuilder
+ getAppEngineVersionOrBuilder() {
+ if ((stepInfoCase_ == 22) && (appEngineVersionBuilder_ != null)) {
+ return appEngineVersionBuilder_.getMessageOrBuilder();
+ } else {
+ if (stepInfoCase_ == 22) {
+ return (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo,
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoOrBuilder>
+ getAppEngineVersionFieldBuilder() {
+ if (appEngineVersionBuilder_ == null) {
+ if (!(stepInfoCase_ == 22)) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.getDefaultInstance();
+ }
+ appEngineVersionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo,
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo) stepInfo_,
+ getParentForChildren(),
+ isClean());
+ stepInfo_ = null;
+ }
+ stepInfoCase_ = 22;
+ onChanged();
+ return appEngineVersionBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo,
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder>
+ cloudRunRevisionBuilder_;
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudRunRevision() {
+ return stepInfoCase_ == 23;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo getCloudRunRevision() {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (stepInfoCase_ == 23) {
+ return (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.getDefaultInstance();
+ } else {
+ if (stepInfoCase_ == 23) {
+ return cloudRunRevisionBuilder_.getMessage();
+ }
+ return com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ public Builder setCloudRunRevision(
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stepInfo_ = value;
+ onChanged();
+ } else {
+ cloudRunRevisionBuilder_.setMessage(value);
+ }
+ stepInfoCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ public Builder setCloudRunRevision(
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.Builder builderForValue) {
+ if (cloudRunRevisionBuilder_ == null) {
+ stepInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ cloudRunRevisionBuilder_.setMessage(builderForValue.build());
+ }
+ stepInfoCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ public Builder mergeCloudRunRevision(
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (stepInfoCase_ == 23
+ && stepInfo_
+ != com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo
+ .getDefaultInstance()) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.newBuilder(
+ (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ stepInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (stepInfoCase_ == 23) {
+ cloudRunRevisionBuilder_.mergeFrom(value);
+ } else {
+ cloudRunRevisionBuilder_.setMessage(value);
+ }
+ }
+ stepInfoCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ public Builder clearCloudRunRevision() {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (stepInfoCase_ == 23) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (stepInfoCase_ == 23) {
+ stepInfoCase_ = 0;
+ stepInfo_ = null;
+ }
+ cloudRunRevisionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ public com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.Builder
+ getCloudRunRevisionBuilder() {
+ return getCloudRunRevisionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ if ((stepInfoCase_ == 23) && (cloudRunRevisionBuilder_ != null)) {
+ return cloudRunRevisionBuilder_.getMessageOrBuilder();
+ } else {
+ if (stepInfoCase_ == 23) {
+ return (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_;
+ }
+ return com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo,
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder>
+ getCloudRunRevisionFieldBuilder() {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (!(stepInfoCase_ == 23)) {
+ stepInfo_ =
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.getDefaultInstance();
+ }
+ cloudRunRevisionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo,
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.Builder,
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder>(
+ (com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo) stepInfo_,
+ getParentForChildren(),
+ isClean());
+ stepInfo_ = null;
+ }
+ stepInfoCase_ = 23;
+ onChanged();
+ return cloudRunRevisionBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java
index 3d0beba7c961..d05bad3f93a9 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java
@@ -260,6 +260,41 @@ public interface StepOrBuilder
*/
com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder getEndpointOrBuilder();
+ /**
+ *
+ *
+ *
+ * Display information of a Google service
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
+ *
+ * @return Whether the googleService field is set.
+ */
+ boolean hasGoogleService();
+ /**
+ *
+ *
+ *
+ * Display information of a Google service
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
+ *
+ * @return The googleService.
+ */
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo getGoogleService();
+ /**
+ *
+ *
+ *
+ * Display information of a Google service
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.GoogleServiceInfo google_service = 24;
+ */
+ com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfoOrBuilder getGoogleServiceOrBuilder();
+
/**
*
*
@@ -689,7 +724,7 @@ public interface StepOrBuilder
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -701,7 +736,7 @@ public interface StepOrBuilder
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
@@ -713,12 +748,90 @@ public interface StepOrBuilder
*
*
*
- * Display information of a Cloud function.
+ * Display information of a Cloud Function.
*
*
* .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20;
*/
com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder getCloudFunctionOrBuilder();
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ boolean hasAppEngineVersion();
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo getAppEngineVersion();
+ /**
+ *
+ *
+ *
+ * Display information of an App Engine service version.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.AppEngineVersionInfo app_engine_version = 22;
+ *
+ */
+ com.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoOrBuilder
+ getAppEngineVersionOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ boolean hasCloudRunRevision();
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo getCloudRunRevision();
+ /**
+ *
+ *
+ *
+ * Display information of a Cloud Run revision.
+ *
+ *
+ * .google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo cloud_run_revision = 23;
+ *
+ */
+ com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder
+ getCloudRunRevisionOrBuilder();
+
com.google.cloud.networkmanagement.v1beta1.Step.StepInfoCase getStepInfoCase();
}
diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java
index 981d4d5930fe..2144896e72af 100644
--- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java
+++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java
@@ -43,6 +43,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_CloudFunctionEndpoint_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_CloudFunctionEndpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_AppEngineVersionEndpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_AppEngineVersionEndpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_CloudRunRevisionEndpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_networkmanagement_v1beta1_Endpoint_CloudRunRevisionEndpoint_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_networkmanagement_v1beta1_ReachabilityDetails_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -99,62 +107,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n1networkma"
+ "nagement.googleapis.com/ConnectivityTest"
+ "\022