labels__ =
+ input.readMessage(
+ LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableLabels()
+ .getMutableMap()
+ .put(labels__.getKey(), labels__.getValue());
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ case 82:
+ {
+ input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 82
+ case 90:
+ {
+ input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 90
+ case 98:
+ {
+ input.readMessage(
+ getReachabilityDetailsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 98
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Unique name of the resource using the form:
+ * `projects/{project_id}/locations/global/connectivityTests/{test_id}`
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique name of the resource using the form:
+ * `projects/{project_id}/locations/global/connectivityTests/{test_id}`
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique name of the resource using the form:
+ * `projects/{project_id}/locations/global/connectivityTests/{test_id}`
+ *
+ *
+ * string name = 1;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique name of the resource using the form:
+ * `projects/{project_id}/locations/global/connectivityTests/{test_id}`
+ *
+ *
+ * string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique name of the resource using the form:
+ * `projects/{project_id}/locations/global/connectivityTests/{test_id}`
+ *
+ *
+ * string name = 1;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ *
+ * The user-supplied description of the Connectivity Test.
+ * Maximum of 512 characters.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The user-supplied description of the Connectivity Test.
+ * Maximum of 512 characters.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The user-supplied description of the Connectivity Test.
+ * Maximum of 512 characters.
+ *
+ *
+ * string description = 2;
+ *
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ description_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The user-supplied description of the Connectivity Test.
+ * Maximum of 512 characters.
+ *
+ *
+ * string description = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+ description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The user-supplied description of the Connectivity Test.
+ * Maximum of 512 characters.
+ *
+ *
+ * string description = 2;
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ description_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.events.cloud.networkmanagement.v1.Endpoint source_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder>
+ sourceBuilder_;
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ *
+ * @return Whether the source field is set.
+ */
+ public boolean hasSource() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ *
+ * @return The source.
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint getSource() {
+ if (sourceBuilder_ == null) {
+ return source_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.getDefaultInstance()
+ : source_;
+ } else {
+ return sourceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ */
+ public Builder setSource(com.google.events.cloud.networkmanagement.v1.Endpoint value) {
+ if (sourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ } else {
+ sourceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ */
+ public Builder setSource(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder builderForValue) {
+ if (sourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ } else {
+ sourceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ */
+ public Builder mergeSource(com.google.events.cloud.networkmanagement.v1.Endpoint value) {
+ if (sourceBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && source_ != null
+ && source_
+ != com.google.events.cloud.networkmanagement.v1.Endpoint.getDefaultInstance()) {
+ getSourceBuilder().mergeFrom(value);
+ } else {
+ source_ = value;
+ }
+ } else {
+ sourceBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ */
+ public Builder clearSource() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ source_ = null;
+ if (sourceBuilder_ != null) {
+ sourceBuilder_.dispose();
+ sourceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.Builder getSourceBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getSourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ */
+ public com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder getSourceOrBuilder() {
+ if (sourceBuilder_ != null) {
+ return sourceBuilder_.getMessageOrBuilder();
+ } else {
+ return source_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.getDefaultInstance()
+ : source_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder>
+ getSourceFieldBuilder() {
+ if (sourceBuilder_ == null) {
+ sourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder>(
+ getSource(), getParentForChildren(), isClean());
+ source_ = null;
+ }
+ return sourceBuilder_;
+ }
+
+ private com.google.events.cloud.networkmanagement.v1.Endpoint destination_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder>
+ destinationBuilder_;
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ *
+ * @return Whether the destination field is set.
+ */
+ public boolean hasDestination() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ *
+ * @return The destination.
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint getDestination() {
+ if (destinationBuilder_ == null) {
+ return destination_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.getDefaultInstance()
+ : destination_;
+ } else {
+ return destinationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ */
+ public Builder setDestination(com.google.events.cloud.networkmanagement.v1.Endpoint value) {
+ if (destinationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destination_ = value;
+ } else {
+ destinationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ */
+ public Builder setDestination(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder builderForValue) {
+ if (destinationBuilder_ == null) {
+ destination_ = builderForValue.build();
+ } else {
+ destinationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ */
+ public Builder mergeDestination(com.google.events.cloud.networkmanagement.v1.Endpoint value) {
+ if (destinationBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && destination_ != null
+ && destination_
+ != com.google.events.cloud.networkmanagement.v1.Endpoint.getDefaultInstance()) {
+ getDestinationBuilder().mergeFrom(value);
+ } else {
+ destination_ = value;
+ }
+ } else {
+ destinationBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ */
+ public Builder clearDestination() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ destination_ = null;
+ if (destinationBuilder_ != null) {
+ destinationBuilder_.dispose();
+ destinationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.Builder getDestinationBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getDestinationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ */
+ public com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder
+ getDestinationOrBuilder() {
+ if (destinationBuilder_ != null) {
+ return destinationBuilder_.getMessageOrBuilder();
+ } else {
+ return destination_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.getDefaultInstance()
+ : destination_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder>
+ getDestinationFieldBuilder() {
+ if (destinationBuilder_ == null) {
+ destinationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder>(
+ getDestination(), getParentForChildren(), isClean());
+ destination_ = null;
+ }
+ return destinationBuilder_;
+ }
+
+ private java.lang.Object protocol_ = "";
+ /**
+ *
+ *
+ *
+ * IP Protocol of the test. When not provided, "TCP" is assumed.
+ *
+ *
+ * string protocol = 5;
+ *
+ * @return The protocol.
+ */
+ public java.lang.String getProtocol() {
+ java.lang.Object ref = protocol_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ protocol_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * IP Protocol of the test. When not provided, "TCP" is assumed.
+ *
+ *
+ * string protocol = 5;
+ *
+ * @return The bytes for protocol.
+ */
+ public com.google.protobuf.ByteString getProtocolBytes() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ protocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * IP Protocol of the test. When not provided, "TCP" is assumed.
+ *
+ *
+ * string protocol = 5;
+ *
+ * @param value The protocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocol(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ protocol_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * IP Protocol of the test. When not provided, "TCP" is assumed.
+ *
+ *
+ * string protocol = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProtocol() {
+ protocol_ = getDefaultInstance().getProtocol();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * IP Protocol of the test. When not provided, "TCP" is assumed.
+ *
+ *
+ * string protocol = 5;
+ *
+ * @param value The bytes for protocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocolBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ protocol_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList relatedProjects_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureRelatedProjectsIsMutable() {
+ if (!((bitField0_ & 0x00000020) != 0)) {
+ relatedProjects_ = new com.google.protobuf.LazyStringArrayList(relatedProjects_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @return A list containing the relatedProjects.
+ */
+ public com.google.protobuf.ProtocolStringList getRelatedProjectsList() {
+ return relatedProjects_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @return The count of relatedProjects.
+ */
+ public int getRelatedProjectsCount() {
+ return relatedProjects_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @param index The index of the element to return.
+ * @return The relatedProjects at the given index.
+ */
+ public java.lang.String getRelatedProjects(int index) {
+ return relatedProjects_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the relatedProjects at the given index.
+ */
+ public com.google.protobuf.ByteString getRelatedProjectsBytes(int index) {
+ return relatedProjects_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @param index The index to set the value at.
+ * @param value The relatedProjects to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelatedProjects(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRelatedProjectsIsMutable();
+ relatedProjects_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @param value The relatedProjects to add.
+ * @return This builder for chaining.
+ */
+ public Builder addRelatedProjects(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRelatedProjectsIsMutable();
+ relatedProjects_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @param values The relatedProjects to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllRelatedProjects(java.lang.Iterable values) {
+ ensureRelatedProjectsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedProjects_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRelatedProjects() {
+ relatedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @param value The bytes of the relatedProjects to add.
+ * @return This builder for chaining.
+ */
+ public Builder addRelatedProjectsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureRelatedProjectsIsMutable();
+ relatedProjects_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The display name of a Connectivity Test.
+ *
+ *
+ * string display_name = 7;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The display name of a Connectivity Test.
+ *
+ *
+ * string display_name = 7;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The display name of a Connectivity Test.
+ *
+ *
+ * string display_name = 7;
+ *
+ * @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_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The display name of a Connectivity Test.
+ *
+ *
+ * string display_name = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The display name of a Connectivity Test.
+ *
+ *
+ * string display_name = 7;
+ *
+ * @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_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField labels_;
+
+ private com.google.protobuf.MapField internalGetLabels() {
+ if (labels_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
+ }
+ return labels_;
+ }
+
+ private com.google.protobuf.MapField
+ internalGetMutableLabels() {
+ if (labels_ == null) {
+ labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+ }
+ if (!labels_.isMutable()) {
+ labels_ = labels_.copy();
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return labels_;
+ }
+
+ public int getLabelsCount() {
+ return internalGetLabels().getMap().size();
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getLabels() {
+ return getLabelsMap();
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ @java.lang.Override
+ public java.util.Map getLabelsMap() {
+ return internalGetLabels().getMap();
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetLabels().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetLabels().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearLabels() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ internalGetMutableLabels().getMutableMap().clear();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map getMutableLabels() {
+ bitField0_ |= 0x00000080;
+ return internalGetMutableLabels().getMutableMap();
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000080;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ public Builder putAllLabels(java.util.Map values) {
+ internalGetMutableLabels().getMutableMap().putAll(values);
+ bitField0_ |= 0x00000080;
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ createTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ *
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
+ }
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ */
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ *
+ * @return The updateTime.
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)
+ && updateTime_ != null
+ && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getUpdateTimeBuilder().mergeFrom(value);
+ } else {
+ updateTime_ = value;
+ }
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ */
+ public Builder clearUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
+ updateTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private com.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachabilityDetails_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails,
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.Builder,
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetailsOrBuilder>
+ reachabilityDetailsBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ *
+ * @return Whether the reachabilityDetails field is set.
+ */
+ public boolean hasReachabilityDetails() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ *
+ * @return The reachabilityDetails.
+ */
+ public com.google.events.cloud.networkmanagement.v1.ReachabilityDetails
+ getReachabilityDetails() {
+ if (reachabilityDetailsBuilder_ == null) {
+ return reachabilityDetails_ == null
+ ? com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.getDefaultInstance()
+ : reachabilityDetails_;
+ } else {
+ return reachabilityDetailsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ */
+ public Builder setReachabilityDetails(
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails value) {
+ if (reachabilityDetailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ reachabilityDetails_ = value;
+ } else {
+ reachabilityDetailsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ */
+ public Builder setReachabilityDetails(
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.Builder builderForValue) {
+ if (reachabilityDetailsBuilder_ == null) {
+ reachabilityDetails_ = builderForValue.build();
+ } else {
+ reachabilityDetailsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ */
+ public Builder mergeReachabilityDetails(
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails value) {
+ if (reachabilityDetailsBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0)
+ && reachabilityDetails_ != null
+ && reachabilityDetails_
+ != com.google.events.cloud.networkmanagement.v1.ReachabilityDetails
+ .getDefaultInstance()) {
+ getReachabilityDetailsBuilder().mergeFrom(value);
+ } else {
+ reachabilityDetails_ = value;
+ }
+ } else {
+ reachabilityDetailsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ */
+ public Builder clearReachabilityDetails() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ reachabilityDetails_ = null;
+ if (reachabilityDetailsBuilder_ != null) {
+ reachabilityDetailsBuilder_.dispose();
+ reachabilityDetailsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ */
+ public com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.Builder
+ getReachabilityDetailsBuilder() {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return getReachabilityDetailsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ */
+ public com.google.events.cloud.networkmanagement.v1.ReachabilityDetailsOrBuilder
+ getReachabilityDetailsOrBuilder() {
+ if (reachabilityDetailsBuilder_ != null) {
+ return reachabilityDetailsBuilder_.getMessageOrBuilder();
+ } else {
+ return reachabilityDetails_ == null
+ ? com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.getDefaultInstance()
+ : reachabilityDetails_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails,
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.Builder,
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetailsOrBuilder>
+ getReachabilityDetailsFieldBuilder() {
+ if (reachabilityDetailsBuilder_ == null) {
+ reachabilityDetailsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails,
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.Builder,
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetailsOrBuilder>(
+ getReachabilityDetails(), getParentForChildren(), isClean());
+ reachabilityDetails_ = null;
+ }
+ return reachabilityDetailsBuilder_;
+ }
+
+ @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.events.cloud.networkmanagement.v1.ConnectivityTest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.ConnectivityTest)
+ private static final com.google.events.cloud.networkmanagement.v1.ConnectivityTest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.ConnectivityTest();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ConnectivityTest 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.events.cloud.networkmanagement.v1.ConnectivityTest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestEventData.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestEventData.java
new file mode 100644
index 00000000..b7e8033d
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestEventData.java
@@ -0,0 +1,743 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * The data within all ConnectivityTest events.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.ConnectivityTestEventData}
+ */
+public final class ConnectivityTestEventData extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.ConnectivityTestEventData)
+ ConnectivityTestEventDataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ConnectivityTestEventData.newBuilder() to construct.
+ private ConnectivityTestEventData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ConnectivityTestEventData() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ConnectivityTestEventData();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData.class,
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PAYLOAD_FIELD_NUMBER = 1;
+ private com.google.events.cloud.networkmanagement.v1.ConnectivityTest payload_;
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ *
+ * @return Whether the payload field is set.
+ */
+ @java.lang.Override
+ public boolean hasPayload() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ *
+ * @return The payload.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ConnectivityTest getPayload() {
+ return payload_ == null
+ ? com.google.events.cloud.networkmanagement.v1.ConnectivityTest.getDefaultInstance()
+ : payload_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ConnectivityTestOrBuilder
+ getPayloadOrBuilder() {
+ return payload_ == null
+ ? com.google.events.cloud.networkmanagement.v1.ConnectivityTest.getDefaultInstance()
+ : payload_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getPayload());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPayload());
+ }
+ 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.events.cloud.networkmanagement.v1.ConnectivityTestEventData)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData other =
+ (com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData) obj;
+
+ if (hasPayload() != other.hasPayload()) return false;
+ if (hasPayload()) {
+ if (!getPayload().equals(other.getPayload())) 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 (hasPayload()) {
+ hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
+ hash = (53 * hash) + getPayload().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData 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.events.cloud.networkmanagement.v1.ConnectivityTestEventData parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData 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.events.cloud.networkmanagement.v1.ConnectivityTestEventData
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData
+ 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.events.cloud.networkmanagement.v1.ConnectivityTestEventData parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData 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.events.cloud.networkmanagement.v1.ConnectivityTestEventData 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;
+ }
+ /**
+ *
+ *
+ *
+ * The data within all ConnectivityTest events.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.ConnectivityTestEventData}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.ConnectivityTestEventData)
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventDataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData.class,
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData.Builder.class);
+ }
+
+ // Construct using
+ // com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getPayloadFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ payload_ = null;
+ if (payloadBuilder_ != null) {
+ payloadBuilder_.dispose();
+ payloadBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData
+ getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData build() {
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData result =
+ new com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ 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.events.cloud.networkmanagement.v1.ConnectivityTestEventData) {
+ return mergeFrom(
+ (com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData other) {
+ if (other
+ == com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData
+ .getDefaultInstance()) return this;
+ if (other.hasPayload()) {
+ mergePayload(other.getPayload());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.events.cloud.networkmanagement.v1.ConnectivityTest payload_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest,
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder,
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestOrBuilder>
+ payloadBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ *
+ * @return Whether the payload field is set.
+ */
+ public boolean hasPayload() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ *
+ * @return The payload.
+ */
+ public com.google.events.cloud.networkmanagement.v1.ConnectivityTest getPayload() {
+ if (payloadBuilder_ == null) {
+ return payload_ == null
+ ? com.google.events.cloud.networkmanagement.v1.ConnectivityTest.getDefaultInstance()
+ : payload_;
+ } else {
+ return payloadBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ public Builder setPayload(com.google.events.cloud.networkmanagement.v1.ConnectivityTest value) {
+ if (payloadBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ payload_ = value;
+ } else {
+ payloadBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ public Builder setPayload(
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder builderForValue) {
+ if (payloadBuilder_ == null) {
+ payload_ = builderForValue.build();
+ } else {
+ payloadBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ public Builder mergePayload(
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest value) {
+ if (payloadBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && payload_ != null
+ && payload_
+ != com.google.events.cloud.networkmanagement.v1.ConnectivityTest
+ .getDefaultInstance()) {
+ getPayloadBuilder().mergeFrom(value);
+ } else {
+ payload_ = value;
+ }
+ } else {
+ payloadBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ public Builder clearPayload() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ payload_ = null;
+ if (payloadBuilder_ != null) {
+ payloadBuilder_.dispose();
+ payloadBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ public com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder
+ getPayloadBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getPayloadFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ public com.google.events.cloud.networkmanagement.v1.ConnectivityTestOrBuilder
+ getPayloadOrBuilder() {
+ if (payloadBuilder_ != null) {
+ return payloadBuilder_.getMessageOrBuilder();
+ } else {
+ return payload_ == null
+ ? com.google.events.cloud.networkmanagement.v1.ConnectivityTest.getDefaultInstance()
+ : payload_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest,
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder,
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestOrBuilder>
+ getPayloadFieldBuilder() {
+ if (payloadBuilder_ == null) {
+ payloadBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest,
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder,
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestOrBuilder>(
+ getPayload(), getParentForChildren(), isClean());
+ payload_ = null;
+ }
+ return payloadBuilder_;
+ }
+
+ @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.events.cloud.networkmanagement.v1.ConnectivityTestEventData)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.ConnectivityTestEventData)
+ private static final com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ConnectivityTestEventData
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ConnectivityTestEventData 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.events.cloud.networkmanagement.v1.ConnectivityTestEventData
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestEventDataOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestEventDataOrBuilder.java
new file mode 100644
index 00000000..6e8473e4
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestEventDataOrBuilder.java
@@ -0,0 +1,60 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface ConnectivityTestEventDataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.ConnectivityTestEventData)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ *
+ * @return Whether the payload field is set.
+ */
+ boolean hasPayload();
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ *
+ * @return The payload.
+ */
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTest getPayload();
+ /**
+ *
+ *
+ *
+ * Optional. The ConnectivityTest event payload. Unset for deletion events.
+ *
+ *
+ * optional .google.events.cloud.networkmanagement.v1.ConnectivityTest payload = 1;
+ */
+ com.google.events.cloud.networkmanagement.v1.ConnectivityTestOrBuilder getPayloadOrBuilder();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java
new file mode 100644
index 00000000..84e4f3e0
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java
@@ -0,0 +1,514 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface ConnectivityTestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.ConnectivityTest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. Unique name of the resource using the form:
+ * `projects/{project_id}/locations/global/connectivityTests/{test_id}`
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. Unique name of the resource using the form:
+ * `projects/{project_id}/locations/global/connectivityTests/{test_id}`
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The user-supplied description of the Connectivity Test.
+ * Maximum of 512 characters.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ *
+ * The user-supplied description of the Connectivity Test.
+ * Maximum of 512 characters.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ *
+ * @return Whether the source field is set.
+ */
+ boolean hasSource();
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ *
+ * @return The source.
+ */
+ com.google.events.cloud.networkmanagement.v1.Endpoint getSource();
+ /**
+ *
+ *
+ *
+ * Required. Source specification of the Connectivity Test.
+ * You can use a combination of source IP address, virtual machine
+ * (VM) instance, or Compute Engine network to uniquely identify
+ * the source location.
+ * Examples:
+ * If the source IP address is an internal IP address within a Google Cloud
+ * Virtual Private Cloud (VPC) network, then you must also specify the VPC
+ * network. Otherwise, specify the VM instance, which already contains its
+ * internal IP address and VPC network information.
+ * If the source of the test is within an on-premises network, then you must
+ * provide the destination VPC network.
+ * If the source endpoint is a Compute Engine VM instance with multiple
+ * network interfaces, the instance itself is not sufficient to identify the
+ * endpoint. So, you must also specify the source IP address or VPC network.
+ * A reachability analysis proceeds even if the source location is
+ * ambiguous. However, the test result may include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint source = 3;
+ */
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder getSourceOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ *
+ * @return Whether the destination field is set.
+ */
+ boolean hasDestination();
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ *
+ * @return The destination.
+ */
+ com.google.events.cloud.networkmanagement.v1.Endpoint getDestination();
+ /**
+ *
+ *
+ *
+ * Required. Destination specification of the Connectivity Test.
+ * You can use a combination of destination IP address, Compute Engine
+ * VM instance, or VPC network to uniquely identify the destination
+ * location.
+ * Even if the destination IP address is not unique, the source IP
+ * location is unique. Usually, the analysis can infer the destination
+ * endpoint from route information.
+ * If the destination you specify is a VM instance and the instance has
+ * multiple network interfaces, then you must also specify either
+ * a destination IP address or VPC network to identify the destination
+ * interface.
+ * A reachability analysis proceeds even if the destination location is
+ * ambiguous. However, the result can include endpoints that you don't
+ * intend to test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint destination = 4;
+ */
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder getDestinationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * IP Protocol of the test. When not provided, "TCP" is assumed.
+ *
+ *
+ * string protocol = 5;
+ *
+ * @return The protocol.
+ */
+ java.lang.String getProtocol();
+ /**
+ *
+ *
+ *
+ * IP Protocol of the test. When not provided, "TCP" is assumed.
+ *
+ *
+ * string protocol = 5;
+ *
+ * @return The bytes for protocol.
+ */
+ com.google.protobuf.ByteString getProtocolBytes();
+
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @return A list containing the relatedProjects.
+ */
+ java.util.List getRelatedProjectsList();
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @return The count of relatedProjects.
+ */
+ int getRelatedProjectsCount();
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @param index The index of the element to return.
+ * @return The relatedProjects at the given index.
+ */
+ java.lang.String getRelatedProjects(int index);
+ /**
+ *
+ *
+ *
+ * Other projects that may be relevant for reachability analysis.
+ * This is applicable to scenarios where a test can cross project boundaries.
+ *
+ *
+ * repeated string related_projects = 6;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the relatedProjects at the given index.
+ */
+ com.google.protobuf.ByteString getRelatedProjectsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. The display name of a Connectivity Test.
+ *
+ *
+ * string display_name = 7;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ *
+ * Output only. The display name of a Connectivity Test.
+ *
+ *
+ * string display_name = 7;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ int getLabelsCount();
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ boolean containsLabels(java.lang.String key);
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map getLabels();
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ java.util.Map getLabelsMap();
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ /* nullable */
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user-provided metadata.
+ *
+ *
+ * map<string, string> labels = 8;
+ */
+ java.lang.String getLabelsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ *
+ * Output only. The time the test was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 10;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ *
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ *
+ * Output only. The time the test's configuration was updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 11;
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ *
+ * @return Whether the reachabilityDetails field is set.
+ */
+ boolean hasReachabilityDetails();
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ *
+ * @return The reachabilityDetails.
+ */
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetails getReachabilityDetails();
+ /**
+ *
+ *
+ *
+ * Output only. The reachability details of this test from the latest run.
+ * The details are updated when creating a new test, updating an
+ * existing test, or triggering a one-time rerun of an existing test.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
+ *
+ */
+ com.google.events.cloud.networkmanagement.v1.ReachabilityDetailsOrBuilder
+ getReachabilityDetailsOrBuilder();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/Data.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/Data.java
new file mode 100644
index 00000000..e1061660
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/Data.java
@@ -0,0 +1,827 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public final class Data {
+ private Data() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_Trace_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_Trace_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_Step_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_Step_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_NetworkInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_NetworkInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_RouteInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_RouteInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerBackend_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerBackend_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_VpnGatewayInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_VpnGatewayInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_VpnTunnelInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_VpnTunnelInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_AbortInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_AbortInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_DropInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_DropInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_CloudSQLInstanceInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_CloudSQLInstanceInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_CloudFunctionInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_CloudRunRevisionInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_AppEngineVersionInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_VpcConnectorInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_ReachabilityDetails_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_ReachabilityDetails_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n3google/events/cloud/networkmanagement/"
+ + "v1/data.proto\022(google.events.cloud.netwo"
+ + "rkmanagement.v1\032\037google/protobuf/timesta"
+ + "mp.proto\032\027google/rpc/status.proto\"\225\001\n\005Tr"
+ + "ace\022M\n\rendpoint_info\030\001 \001(\01326.google.even"
+ + "ts.cloud.networkmanagement.v1.EndpointIn"
+ + "fo\022=\n\005steps\030\002 \003(\0132..google.events.cloud."
+ + "networkmanagement.v1.Step\"\276\023\n\004Step\022\023\n\013de"
+ + "scription\030\001 \001(\t\022C\n\005state\030\002 \001(\01624.google."
+ + "events.cloud.networkmanagement.v1.Step.S"
+ + "tate\022\023\n\013causes_drop\030\003 \001(\010\022\022\n\nproject_id\030"
+ + "\004 \001(\t\022J\n\010instance\030\005 \001(\01326.google.events."
+ + "cloud.networkmanagement.v1.InstanceInfoH"
+ + "\000\022J\n\010firewall\030\006 \001(\01326.google.events.clou"
+ + "d.networkmanagement.v1.FirewallInfoH\000\022D\n"
+ + "\005route\030\007 \001(\01323.google.events.cloud.netwo"
+ + "rkmanagement.v1.RouteInfoH\000\022J\n\010endpoint\030"
+ + "\010 \001(\01326.google.events.cloud.networkmanag"
+ + "ement.v1.EndpointInfoH\000\022U\n\016google_servic"
+ + "e\030\030 \001(\0132;.google.events.cloud.networkman"
+ + "agement.v1.GoogleServiceInfoH\000\022W\n\017forwar"
+ + "ding_rule\030\t \001(\0132<.google.events.cloud.ne"
+ + "tworkmanagement.v1.ForwardingRuleInfoH\000\022"
+ + "O\n\013vpn_gateway\030\n \001(\01328.google.events.clo"
+ + "ud.networkmanagement.v1.VpnGatewayInfoH\000"
+ + "\022M\n\nvpn_tunnel\030\013 \001(\01327.google.events.clo"
+ + "ud.networkmanagement.v1.VpnTunnelInfoH\000\022"
+ + "S\n\rvpc_connector\030\025 \001(\0132:.google.events.c"
+ + "loud.networkmanagement.v1.VpcConnectorIn"
+ + "foH\000\022H\n\007deliver\030\014 \001(\01325.google.events.cl"
+ + "oud.networkmanagement.v1.DeliverInfoH\000\022H"
+ + "\n\007forward\030\r \001(\01325.google.events.cloud.ne"
+ + "tworkmanagement.v1.ForwardInfoH\000\022D\n\005abor"
+ + "t\030\016 \001(\01323.google.events.cloud.networkman"
+ + "agement.v1.AbortInfoH\000\022B\n\004drop\030\017 \001(\01322.g"
+ + "oogle.events.cloud.networkmanagement.v1."
+ + "DropInfoH\000\022S\n\rload_balancer\030\020 \001(\0132:.goog"
+ + "le.events.cloud.networkmanagement.v1.Loa"
+ + "dBalancerInfoH\000\022H\n\007network\030\021 \001(\01325.googl"
+ + "e.events.cloud.networkmanagement.v1.Netw"
+ + "orkInfoH\000\022M\n\ngke_master\030\022 \001(\01327.google.e"
+ + "vents.cloud.networkmanagement.v1.GKEMast"
+ + "erInfoH\000\022\\\n\022cloud_sql_instance\030\023 \001(\0132>.g"
+ + "oogle.events.cloud.networkmanagement.v1."
+ + "CloudSQLInstanceInfoH\000\022U\n\016cloud_function"
+ + "\030\024 \001(\0132;.google.events.cloud.networkmana"
+ + "gement.v1.CloudFunctionInfoH\000\022\\\n\022app_eng"
+ + "ine_version\030\026 \001(\0132>.google.events.cloud."
+ + "networkmanagement.v1.AppEngineVersionInf"
+ + "oH\000\022\\\n\022cloud_run_revision\030\027 \001(\0132>.google"
+ + ".events.cloud.networkmanagement.v1.Cloud"
+ + "RunRevisionInfoH\000\"\331\005\n\005State\022\025\n\021STATE_UNS"
+ + "PECIFIED\020\000\022\027\n\023START_FROM_INSTANCE\020\001\022\027\n\023S"
+ + "TART_FROM_INTERNET\020\002\022\035\n\031START_FROM_GOOGL"
+ + "E_SERVICE\020\033\022\036\n\032START_FROM_PRIVATE_NETWOR"
+ + "K\020\003\022\031\n\025START_FROM_GKE_MASTER\020\025\022!\n\035START_"
+ + "FROM_CLOUD_SQL_INSTANCE\020\026\022\035\n\031START_FROM_"
+ + "CLOUD_FUNCTION\020\027\022!\n\035START_FROM_APP_ENGIN"
+ + "E_VERSION\020\031\022!\n\035START_FROM_CLOUD_RUN_REVI"
+ + "SION\020\032\022\037\n\033APPLY_INGRESS_FIREWALL_RULE\020\004\022"
+ + "\036\n\032APPLY_EGRESS_FIREWALL_RULE\020\005\022\017\n\013APPLY"
+ + "_ROUTE\020\006\022\031\n\025APPLY_FORWARDING_RULE\020\007\022\025\n\021S"
+ + "POOFING_APPROVED\020\010\022\026\n\022ARRIVE_AT_INSTANCE"
+ + "\020\t\022$\n ARRIVE_AT_INTERNAL_LOAD_BALANCER\020\n"
+ + "\022$\n ARRIVE_AT_EXTERNAL_LOAD_BALANCER\020\013\022\031"
+ + "\n\025ARRIVE_AT_VPN_GATEWAY\020\014\022\030\n\024ARRIVE_AT_V"
+ + "PN_TUNNEL\020\r\022\033\n\027ARRIVE_AT_VPC_CONNECTOR\020\030"
+ + "\022\007\n\003NAT\020\016\022\024\n\020PROXY_CONNECTION\020\017\022\013\n\007DELIV"
+ + "ER\020\020\022\010\n\004DROP\020\021\022\013\n\007FORWARD\020\022\022\t\n\005ABORT\020\023\022\035"
+ + "\n\031VIEWER_PERMISSION_MISSING\020\024B\013\n\tstep_in"
+ + "fo\"\262\001\n\014InstanceInfo\022\024\n\014display_name\030\001 \001("
+ + "\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tinterface\030\003 \001(\t\022\023\n\013net"
+ + "work_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023\n\013e"
+ + "xternal_ip\030\006 \001(\t\022\024\n\014network_tags\030\007 \003(\t\022\027"
+ + "\n\017service_account\030\010 \001(\t\"J\n\013NetworkInfo\022\024"
+ + "\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020mat"
+ + "ched_ip_range\030\004 \001(\t\"\217\004\n\014FirewallInfo\022\024\n\014"
+ + "display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tdirec"
+ + "tion\030\003 \001(\t\022\016\n\006action\030\004 \001(\t\022\020\n\010priority\030\005"
+ + " \001(\005\022\023\n\013network_uri\030\006 \001(\t\022\023\n\013target_tags"
+ + "\030\007 \003(\t\022\037\n\027target_service_accounts\030\010 \003(\t\022"
+ + "\016\n\006policy\030\t \001(\t\022c\n\022firewall_rule_type\030\n "
+ + "\001(\0162G.google.events.cloud.networkmanagem"
+ + "ent.v1.FirewallInfo.FirewallRuleType\"\346\001\n"
+ + "\020FirewallRuleType\022\"\n\036FIREWALL_RULE_TYPE_"
+ + "UNSPECIFIED\020\000\022%\n!HIERARCHICAL_FIREWALL_P"
+ + "OLICY_RULE\020\001\022\025\n\021VPC_FIREWALL_RULE\020\002\022\035\n\031I"
+ + "MPLIED_VPC_FIREWALL_RULE\020\003\022/\n+SERVERLESS"
+ + "_VPC_ACCESS_MANAGED_FIREWALL_RULE\020\004\022 \n\034N"
+ + "ETWORK_FIREWALL_POLICY_RULE\020\005\"\363\006\n\tRouteI"
+ + "nfo\022Q\n\nroute_type\030\010 \001(\0162=.google.events."
+ + "cloud.networkmanagement.v1.RouteInfo.Rou"
+ + "teType\022V\n\rnext_hop_type\030\t \001(\0162?.google.e"
+ + "vents.cloud.networkmanagement.v1.RouteIn"
+ + "fo.NextHopType\022\024\n\014display_name\030\001 \001(\t\022\013\n\003"
+ + "uri\030\002 \001(\t\022\025\n\rdest_ip_range\030\003 \001(\t\022\020\n\010next"
+ + "_hop\030\004 \001(\t\022\023\n\013network_uri\030\005 \001(\t\022\020\n\010prior"
+ + "ity\030\006 \001(\005\022\025\n\rinstance_tags\030\007 \003(\t\022\024\n\014src_"
+ + "ip_range\030\n \001(\t\022\030\n\020dest_port_ranges\030\013 \003(\t"
+ + "\022\027\n\017src_port_ranges\030\014 \003(\t\022\021\n\tprotocols\030\r"
+ + " \003(\t\"\233\001\n\tRouteType\022\032\n\026ROUTE_TYPE_UNSPECI"
+ + "FIED\020\000\022\n\n\006SUBNET\020\001\022\n\n\006STATIC\020\002\022\013\n\007DYNAMI"
+ + "C\020\003\022\022\n\016PEERING_SUBNET\020\004\022\022\n\016PEERING_STATI"
+ + "C\020\005\022\023\n\017PEERING_DYNAMIC\020\006\022\020\n\014POLICY_BASED"
+ + "\020\007\"\266\002\n\013NextHopType\022\035\n\031NEXT_HOP_TYPE_UNSP"
+ + "ECIFIED\020\000\022\017\n\013NEXT_HOP_IP\020\001\022\025\n\021NEXT_HOP_I"
+ + "NSTANCE\020\002\022\024\n\020NEXT_HOP_NETWORK\020\003\022\024\n\020NEXT_"
+ + "HOP_PEERING\020\004\022\031\n\025NEXT_HOP_INTERCONNECT\020\005"
+ + "\022\027\n\023NEXT_HOP_VPN_TUNNEL\020\006\022\030\n\024NEXT_HOP_VP"
+ + "N_GATEWAY\020\007\022\035\n\031NEXT_HOP_INTERNET_GATEWAY"
+ + "\020\010\022\026\n\022NEXT_HOP_BLACKHOLE\020\t\022\020\n\014NEXT_HOP_I"
+ + "LB\020\n\022\035\n\031NEXT_HOP_ROUTER_APPLIANCE\020\013\"\212\002\n\021"
+ + "GoogleServiceInfo\022\021\n\tsource_ip\030\001 \001(\t\022j\n\023"
+ + "google_service_type\030\002 \001(\0162M.google.event"
+ + "s.cloud.networkmanagement.v1.GoogleServi"
+ + "ceInfo.GoogleServiceType\"v\n\021GoogleServic"
+ + "eType\022#\n\037GOOGLE_SERVICE_TYPE_UNSPECIFIED"
+ + "\020\000\022\007\n\003IAP\020\001\022$\n GFE_PROXY_OR_HEALTH_CHECK"
+ + "_PROBER\020\002\022\r\n\tCLOUD_DNS\020\003\"\237\001\n\022ForwardingR"
+ + "uleInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001"
+ + "(\t\022\030\n\020matched_protocol\030\003 \001(\t\022\032\n\022matched_"
+ + "port_range\030\006 \001(\t\022\013\n\003vip\030\004 \001(\t\022\016\n\006target\030"
+ + "\005 \001(\t\022\023\n\013network_uri\030\007 \001(\t\"\323\004\n\020LoadBalan"
+ + "cerInfo\022g\n\022load_balancer_type\030\001 \001(\0162K.go"
+ + "ogle.events.cloud.networkmanagement.v1.L"
+ + "oadBalancerInfo.LoadBalancerType\022\030\n\020heal"
+ + "th_check_uri\030\002 \001(\t\022O\n\010backends\030\003 \003(\0132=.g"
+ + "oogle.events.cloud.networkmanagement.v1."
+ + "LoadBalancerBackend\022\\\n\014backend_type\030\004 \001("
+ + "\0162F.google.events.cloud.networkmanagemen"
+ + "t.v1.LoadBalancerInfo.BackendType\022\023\n\013bac"
+ + "kend_uri\030\005 \001(\t\"\217\001\n\020LoadBalancerType\022\"\n\036L"
+ + "OAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n\020INTER"
+ + "NAL_TCP_UDP\020\001\022\023\n\017NETWORK_TCP_UDP\020\002\022\016\n\nHT"
+ + "TP_PROXY\020\003\022\r\n\tTCP_PROXY\020\004\022\r\n\tSSL_PROXY\020\005"
+ + "\"f\n\013BackendType\022\034\n\030BACKEND_TYPE_UNSPECIF"
+ + "IED\020\000\022\023\n\017BACKEND_SERVICE\020\001\022\017\n\013TARGET_POO"
+ + "L\020\002\022\023\n\017TARGET_INSTANCE\020\003\"\375\002\n\023LoadBalance"
+ + "rBackend\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 "
+ + "\001(\t\022{\n\033health_check_firewall_state\030\003 \001(\016"
+ + "2V.google.events.cloud.networkmanagement"
+ + ".v1.LoadBalancerBackend.HealthCheckFirew"
+ + "allState\022,\n$health_check_allowing_firewa"
+ + "ll_rules\030\004 \003(\t\022,\n$health_check_blocking_"
+ + "firewall_rules\030\005 \003(\t\"j\n\030HealthCheckFirew"
+ + "allState\022+\n\'HEALTH_CHECK_FIREWALL_STATE_"
+ + "UNSPECIFIED\020\000\022\016\n\nCONFIGURED\020\001\022\021\n\rMISCONF"
+ + "IGURED\020\002\"\204\001\n\016VpnGatewayInfo\022\024\n\014display_n"
+ + "ame\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013network_uri\030\003 "
+ + "\001(\t\022\022\n\nip_address\030\004 \001(\t\022\026\n\016vpn_tunnel_ur"
+ + "i\030\005 \001(\t\022\016\n\006region\030\006 \001(\t\"\365\002\n\rVpnTunnelInf"
+ + "o\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\026\n\016"
+ + "source_gateway\030\003 \001(\t\022\026\n\016remote_gateway\030\004"
+ + " \001(\t\022\031\n\021remote_gateway_ip\030\005 \001(\t\022\031\n\021sourc"
+ + "e_gateway_ip\030\006 \001(\t\022\023\n\013network_uri\030\007 \001(\t\022"
+ + "\016\n\006region\030\010 \001(\t\022Y\n\014routing_type\030\t \001(\0162C."
+ + "google.events.cloud.networkmanagement.v1"
+ + ".VpnTunnelInfo.RoutingType\"[\n\013RoutingTyp"
+ + "e\022\034\n\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n\013ROUTE"
+ + "_BASED\020\001\022\020\n\014POLICY_BASED\020\002\022\013\n\007DYNAMIC\020\003\""
+ + "\267\001\n\014EndpointInfo\022\021\n\tsource_ip\030\001 \001(\t\022\026\n\016d"
+ + "estination_ip\030\002 \001(\t\022\020\n\010protocol\030\003 \001(\t\022\023\n"
+ + "\013source_port\030\004 \001(\005\022\030\n\020destination_port\030\005"
+ + " \001(\005\022\032\n\022source_network_uri\030\006 \001(\t\022\037\n\027dest"
+ + "ination_network_uri\030\007 \001(\t\"\247\002\n\013DeliverInf"
+ + "o\022L\n\006target\030\001 \001(\0162<.google.events.cloud."
+ + "networkmanagement.v1.DeliverInfo.Target\022"
+ + "\024\n\014resource_uri\030\002 \001(\t\"\263\001\n\006Target\022\026\n\022TARG"
+ + "ET_UNSPECIFIED\020\000\022\014\n\010INSTANCE\020\001\022\014\n\010INTERN"
+ + "ET\020\002\022\016\n\nGOOGLE_API\020\003\022\016\n\nGKE_MASTER\020\004\022\026\n\022"
+ + "CLOUD_SQL_INSTANCE\020\005\022\031\n\025PSC_PUBLISHED_SE"
+ + "RVICE\020\006\022\022\n\016PSC_GOOGLE_API\020\007\022\016\n\nPSC_VPC_S"
+ + "C\020\010\"\251\002\n\013ForwardInfo\022L\n\006target\030\001 \001(\0162<.go"
+ + "ogle.events.cloud.networkmanagement.v1.F"
+ + "orwardInfo.Target\022\024\n\014resource_uri\030\002 \001(\t\""
+ + "\265\001\n\006Target\022\026\n\022TARGET_UNSPECIFIED\020\000\022\017\n\013PE"
+ + "ERING_VPC\020\001\022\017\n\013VPN_GATEWAY\020\002\022\020\n\014INTERCON"
+ + "NECT\020\003\022\016\n\nGKE_MASTER\020\004\022\"\n\036IMPORTED_CUSTO"
+ + "M_ROUTE_NEXT_HOP\020\005\022\026\n\022CLOUD_SQL_INSTANCE"
+ + "\020\006\022\023\n\017ANOTHER_PROJECT\020\007\"\201\005\n\tAbortInfo\022H\n"
+ + "\005cause\030\001 \001(\01629.google.events.cloud.netwo"
+ + "rkmanagement.v1.AbortInfo.Cause\022\024\n\014resou"
+ + "rce_uri\030\002 \001(\t\022#\n\033projects_missing_permis"
+ + "sion\030\003 \003(\t\"\356\003\n\005Cause\022\025\n\021CAUSE_UNSPECIFIE"
+ + "D\020\000\022\023\n\017UNKNOWN_NETWORK\020\001\022\016\n\nUNKNOWN_IP\020\002"
+ + "\022\023\n\017UNKNOWN_PROJECT\020\003\022\025\n\021PERMISSION_DENI"
+ + "ED\020\004\022\026\n\022NO_SOURCE_LOCATION\020\005\022\024\n\020INVALID_"
+ + "ARGUMENT\020\006\022\022\n\016NO_EXTERNAL_IP\020\007\022\032\n\026UNINTE"
+ + "NDED_DESTINATION\020\010\022\022\n\016TRACE_TOO_LONG\020\t\022\022"
+ + "\n\016INTERNAL_ERROR\020\n\022\035\n\031SOURCE_ENDPOINT_NO"
+ + "T_FOUND\020\013\022\035\n\031MISMATCHED_SOURCE_NETWORK\020\014"
+ + "\022\"\n\036DESTINATION_ENDPOINT_NOT_FOUND\020\r\022\"\n\036"
+ + "MISMATCHED_DESTINATION_NETWORK\020\016\022\017\n\013UNSU"
+ + "PPORTED\020\017\022\031\n\025MISMATCHED_IP_VERSION\020\020\022&\n\""
+ + "GKE_KONNECTIVITY_PROXY_UNSUPPORTED\020\021\022\035\n\031"
+ + "RESOURCE_CONFIG_NOT_FOUND\020\022\"\314\013\n\010DropInfo"
+ + "\022G\n\005cause\030\001 \001(\01628.google.events.cloud.ne"
+ + "tworkmanagement.v1.DropInfo.Cause\022\024\n\014res"
+ + "ource_uri\030\002 \001(\t\"\340\n\n\005Cause\022\025\n\021CAUSE_UNSPE"
+ + "CIFIED\020\000\022\034\n\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031"
+ + "\n\025FOREIGN_IP_DISALLOWED\020\002\022\021\n\rFIREWALL_RU"
+ + "LE\020\003\022\014\n\010NO_ROUTE\020\004\022\023\n\017ROUTE_BLACKHOLE\020\005\022"
+ + "\027\n\023ROUTE_WRONG_NETWORK\020\006\022\037\n\033PRIVATE_TRAF"
+ + "FIC_TO_INTERNET\020\007\022$\n PRIVATE_GOOGLE_ACCE"
+ + "SS_DISALLOWED\020\010\022\027\n\023NO_EXTERNAL_ADDRESS\020\t"
+ + "\022\034\n\030UNKNOWN_INTERNAL_ADDRESS\020\n\022\034\n\030FORWAR"
+ + "DING_RULE_MISMATCH\020\013\022#\n\037FORWARDING_RULE_"
+ + "REGION_MISMATCH\020\031\022 \n\034FORWARDING_RULE_NO_"
+ + "INSTANCES\020\014\0228\n4FIREWALL_BLOCKING_LOAD_BA"
+ + "LANCER_BACKEND_HEALTH_CHECK\020\r\022\030\n\024INSTANC"
+ + "E_NOT_RUNNING\020\016\022\033\n\027GKE_CLUSTER_NOT_RUNNI"
+ + "NG\020\033\022\"\n\036CLOUD_SQL_INSTANCE_NOT_RUNNING\020\034"
+ + "\022\030\n\024TRAFFIC_TYPE_BLOCKED\020\017\022\"\n\036GKE_MASTER"
+ + "_UNAUTHORIZED_ACCESS\020\020\022*\n&CLOUD_SQL_INST"
+ + "ANCE_UNAUTHORIZED_ACCESS\020\021\022\036\n\032DROPPED_IN"
+ + "SIDE_GKE_SERVICE\020\022\022$\n DROPPED_INSIDE_CLO"
+ + "UD_SQL_SERVICE\020\023\022%\n!GOOGLE_MANAGED_SERVI"
+ + "CE_NO_PEERING\020\024\022*\n&GOOGLE_MANAGED_SERVIC"
+ + "E_NO_PSC_ENDPOINT\020&\022\034\n\030GKE_PSC_ENDPOINT_"
+ + "MISSING\020$\022$\n CLOUD_SQL_INSTANCE_NO_IP_AD"
+ + "DRESS\020\025\022%\n!GKE_CONTROL_PLANE_REGION_MISM"
+ + "ATCH\020\036\0223\n/PUBLIC_GKE_CONTROL_PLANE_TO_PR"
+ + "IVATE_DESTINATION\020\037\022\036\n\032GKE_CONTROL_PLANE"
+ + "_NO_ROUTE\020 \022:\n6CLOUD_SQL_INSTANCE_NOT_CO"
+ + "NFIGURED_FOR_EXTERNAL_TRAFFIC\020!\0224\n0PUBLI"
+ + "C_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINAT"
+ + "ION\020\"\022\037\n\033CLOUD_SQL_INSTANCE_NO_ROUTE\020#\022\035"
+ + "\n\031CLOUD_FUNCTION_NOT_ACTIVE\020\026\022\031\n\025VPC_CON"
+ + "NECTOR_NOT_SET\020\027\022\035\n\031VPC_CONNECTOR_NOT_RU"
+ + "NNING\020\030\022\037\n\033PSC_CONNECTION_NOT_ACCEPTED\020\032"
+ + "\022 \n\034CLOUD_RUN_REVISION_NOT_READY\020\035\022\'\n#DR"
+ + "OPPED_INSIDE_PSC_SERVICE_PRODUCER\020%\022%\n!L"
+ + "OAD_BALANCER_HAS_NO_PROXY_SUBNET\020\'\"k\n\rGK"
+ + "EMasterInfo\022\023\n\013cluster_uri\030\002 \001(\t\022\033\n\023clus"
+ + "ter_network_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001"
+ + "(\t\022\023\n\013external_ip\030\006 \001(\t\"\210\001\n\024CloudSQLInst"
+ + "anceInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 "
+ + "\001(\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013internal_ip\030"
+ + "\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\022\016\n\006region\030\007 \001"
+ + "(\t\"\\\n\021CloudFunctionInfo\022\024\n\014display_name\030"
+ + "\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\003 \001(\t\022\022\n\n"
+ + "version_id\030\004 \001(\003\"`\n\024CloudRunRevisionInfo"
+ + "\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010l"
+ + "ocation\030\004 \001(\t\022\023\n\013service_uri\030\005 \001(\t\"_\n\024Ap"
+ + "pEngineVersionInfo\022\024\n\014display_name\030\001 \001(\t"
+ + "\022\013\n\003uri\030\002 \001(\t\022\017\n\007runtime\030\003 \001(\t\022\023\n\013enviro"
+ + "nment\030\004 \001(\t\"G\n\020VpcConnectorInfo\022\024\n\014displ"
+ + "ay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\003"
+ + " \001(\t\"\312\004\n\020ConnectivityTest\022\014\n\004name\030\001 \001(\t\022"
+ + "\023\n\013description\030\002 \001(\t\022B\n\006source\030\003 \001(\01322.g"
+ + "oogle.events.cloud.networkmanagement.v1."
+ + "Endpoint\022G\n\013destination\030\004 \001(\01322.google.e"
+ + "vents.cloud.networkmanagement.v1.Endpoin"
+ + "t\022\020\n\010protocol\030\005 \001(\t\022\030\n\020related_projects\030"
+ + "\006 \003(\t\022\024\n\014display_name\030\007 \001(\t\022V\n\006labels\030\010 "
+ + "\003(\0132F.google.events.cloud.networkmanagem"
+ + "ent.v1.ConnectivityTest.LabelsEntry\022/\n\013c"
+ + "reate_time\030\n \001(\0132\032.google.protobuf.Times"
+ + "tamp\022/\n\013update_time\030\013 \001(\0132\032.google.proto"
+ + "buf.Timestamp\022[\n\024reachability_details\030\014 "
+ + "\001(\0132=.google.events.cloud.networkmanagem"
+ + "ent.v1.ReachabilityDetails\032-\n\013LabelsEntr"
+ + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\360\005\n\010En"
+ + "dpoint\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\032\n\022gke_master_cluster"
+ + "\030\007 \001(\t\022\032\n\022cloud_sql_instance\030\010 \001(\t\022`\n\016cl"
+ + "oud_function\030\n \001(\0132H.google.events.cloud"
+ + ".networkmanagement.v1.Endpoint.CloudFunc"
+ + "tionEndpoint\022g\n\022app_engine_version\030\013 \001(\013"
+ + "2K.google.events.cloud.networkmanagement"
+ + ".v1.Endpoint.AppEngineVersionEndpoint\022g\n"
+ + "\022cloud_run_revision\030\014 \001(\0132K.google.event"
+ + "s.cloud.networkmanagement.v1.Endpoint.Cl"
+ + "oudRunRevisionEndpoint\022\017\n\007network\030\004 \001(\t\022"
+ + "T\n\014network_type\030\005 \001(\0162>.google.events.cl"
+ + "oud.networkmanagement.v1.Endpoint.Networ"
+ + "kType\022\022\n\nproject_id\030\006 \001(\t\032$\n\025CloudFuncti"
+ + "onEndpoint\022\013\n\003uri\030\001 \001(\t\032\'\n\030AppEngineVers"
+ + "ionEndpoint\022\013\n\003uri\030\001 \001(\t\032\'\n\030CloudRunRevi"
+ + "sionEndpoint\022\013\n\003uri\030\001 \001(\t\"Q\n\013NetworkType"
+ + "\022\034\n\030NETWORK_TYPE_UNSPECIFIED\020\000\022\017\n\013GCP_NE"
+ + "TWORK\020\001\022\023\n\017NON_GCP_NETWORK\020\002\"\343\002\n\023Reachab"
+ + "ilityDetails\022T\n\006result\030\001 \001(\0162D.google.ev"
+ + "ents.cloud.networkmanagement.v1.Reachabi"
+ + "lityDetails.Result\022/\n\013verify_time\030\002 \001(\0132"
+ + "\032.google.protobuf.Timestamp\022!\n\005error\030\003 \001"
+ + "(\0132\022.google.rpc.Status\022?\n\006traces\030\005 \003(\0132/"
+ + ".google.events.cloud.networkmanagement.v"
+ + "1.Trace\"a\n\006Result\022\026\n\022RESULT_UNSPECIFIED\020"
+ + "\000\022\r\n\tREACHABLE\020\001\022\017\n\013UNREACHABLE\020\002\022\r\n\tAMB"
+ + "IGUOUS\020\004\022\020\n\014UNDETERMINED\020\005\"y\n\031Connectivi"
+ + "tyTestEventData\022P\n\007payload\030\001 \001(\0132:.googl"
+ + "e.events.cloud.networkmanagement.v1.Conn"
+ + "ectivityTestH\000\210\001\001B\n\n\010_payloadB\276\001\n,com.go"
+ + "ogle.events.cloud.networkmanagement.v1P\001"
+ + "\252\0021Google.Events.Protobuf.Cloud.NetworkM"
+ + "anagement.V1\312\002(Google\\Events\\Cloud\\Netwo"
+ + "rkManagement\\V1\352\002,Google::Events::Cloud:"
+ + ":NetworkManagement::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.rpc.StatusProto.getDescriptor(),
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_Trace_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_events_cloud_networkmanagement_v1_Trace_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_Trace_descriptor,
+ new java.lang.String[] {
+ "EndpointInfo", "Steps",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_Step_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_events_cloud_networkmanagement_v1_Step_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_Step_descriptor,
+ new java.lang.String[] {
+ "Description",
+ "State",
+ "CausesDrop",
+ "ProjectId",
+ "Instance",
+ "Firewall",
+ "Route",
+ "Endpoint",
+ "GoogleService",
+ "ForwardingRule",
+ "VpnGateway",
+ "VpnTunnel",
+ "VpcConnector",
+ "Deliver",
+ "Forward",
+ "Abort",
+ "Drop",
+ "LoadBalancer",
+ "Network",
+ "GkeMaster",
+ "CloudSqlInstance",
+ "CloudFunction",
+ "AppEngineVersion",
+ "CloudRunRevision",
+ "StepInfo",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName",
+ "Uri",
+ "Interface",
+ "NetworkUri",
+ "InternalIp",
+ "ExternalIp",
+ "NetworkTags",
+ "ServiceAccount",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_NetworkInfo_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_events_cloud_networkmanagement_v1_NetworkInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_NetworkInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName", "Uri", "MatchedIpRange",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName",
+ "Uri",
+ "Direction",
+ "Action",
+ "Priority",
+ "NetworkUri",
+ "TargetTags",
+ "TargetServiceAccounts",
+ "Policy",
+ "FirewallRuleType",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_RouteInfo_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_events_cloud_networkmanagement_v1_RouteInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_RouteInfo_descriptor,
+ new java.lang.String[] {
+ "RouteType",
+ "NextHopType",
+ "DisplayName",
+ "Uri",
+ "DestIpRange",
+ "NextHop",
+ "NetworkUri",
+ "Priority",
+ "InstanceTags",
+ "SrcIpRange",
+ "DestPortRanges",
+ "SrcPortRanges",
+ "Protocols",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_descriptor,
+ new java.lang.String[] {
+ "SourceIp", "GoogleServiceType",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName",
+ "Uri",
+ "MatchedProtocol",
+ "MatchedPortRange",
+ "Vip",
+ "Target",
+ "NetworkUri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerInfo_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerInfo_descriptor,
+ new java.lang.String[] {
+ "LoadBalancerType", "HealthCheckUri", "Backends", "BackendType", "BackendUri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerBackend_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerBackend_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_LoadBalancerBackend_descriptor,
+ new java.lang.String[] {
+ "DisplayName",
+ "Uri",
+ "HealthCheckFirewallState",
+ "HealthCheckAllowingFirewallRules",
+ "HealthCheckBlockingFirewallRules",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_VpnGatewayInfo_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_events_cloud_networkmanagement_v1_VpnGatewayInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_VpnGatewayInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName", "Uri", "NetworkUri", "IpAddress", "VpnTunnelUri", "Region",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_VpnTunnelInfo_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_events_cloud_networkmanagement_v1_VpnTunnelInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_VpnTunnelInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName",
+ "Uri",
+ "SourceGateway",
+ "RemoteGateway",
+ "RemoteGatewayIp",
+ "SourceGatewayIp",
+ "NetworkUri",
+ "Region",
+ "RoutingType",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_descriptor,
+ new java.lang.String[] {
+ "SourceIp",
+ "DestinationIp",
+ "Protocol",
+ "SourcePort",
+ "DestinationPort",
+ "SourceNetworkUri",
+ "DestinationNetworkUri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_descriptor,
+ new java.lang.String[] {
+ "Target", "ResourceUri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_descriptor,
+ new java.lang.String[] {
+ "Target", "ResourceUri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_AbortInfo_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_google_events_cloud_networkmanagement_v1_AbortInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_AbortInfo_descriptor,
+ new java.lang.String[] {
+ "Cause", "ResourceUri", "ProjectsMissingPermission",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_DropInfo_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_google_events_cloud_networkmanagement_v1_DropInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_DropInfo_descriptor,
+ new java.lang.String[] {
+ "Cause", "ResourceUri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_descriptor,
+ new java.lang.String[] {
+ "ClusterUri", "ClusterNetworkUri", "InternalIp", "ExternalIp",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_CloudSQLInstanceInfo_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_google_events_cloud_networkmanagement_v1_CloudSQLInstanceInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_CloudSQLInstanceInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName", "Uri", "NetworkUri", "InternalIp", "ExternalIp", "Region",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_google_events_cloud_networkmanagement_v1_CloudFunctionInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName", "Uri", "Location", "VersionId",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor =
+ getDescriptor().getMessageTypes().get(20);
+ internal_static_google_events_cloud_networkmanagement_v1_CloudRunRevisionInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName", "Uri", "Location", "ServiceUri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor =
+ getDescriptor().getMessageTypes().get(21);
+ internal_static_google_events_cloud_networkmanagement_v1_AppEngineVersionInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName", "Uri", "Runtime", "Environment",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor =
+ getDescriptor().getMessageTypes().get(22);
+ internal_static_google_events_cloud_networkmanagement_v1_VpcConnectorInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor,
+ new java.lang.String[] {
+ "DisplayName", "Uri", "Location",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_descriptor =
+ getDescriptor().getMessageTypes().get(23);
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ "Description",
+ "Source",
+ "Destination",
+ "Protocol",
+ "RelatedProjects",
+ "DisplayName",
+ "Labels",
+ "CreateTime",
+ "UpdateTime",
+ "ReachabilityDetails",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_LabelsEntry_descriptor =
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_LabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTest_LabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor =
+ getDescriptor().getMessageTypes().get(24);
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor,
+ new java.lang.String[] {
+ "IpAddress",
+ "Port",
+ "Instance",
+ "GkeMasterCluster",
+ "CloudSqlInstance",
+ "CloudFunction",
+ "AppEngineVersion",
+ "CloudRunRevision",
+ "Network",
+ "NetworkType",
+ "ProjectId",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_descriptor =
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_descriptor,
+ new java.lang.String[] {
+ "Uri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_descriptor =
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_descriptor,
+ new java.lang.String[] {
+ "Uri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_descriptor =
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor
+ .getNestedTypes()
+ .get(2);
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_descriptor,
+ new java.lang.String[] {
+ "Uri",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_ReachabilityDetails_descriptor =
+ getDescriptor().getMessageTypes().get(25);
+ internal_static_google_events_cloud_networkmanagement_v1_ReachabilityDetails_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_ReachabilityDetails_descriptor,
+ new java.lang.String[] {
+ "Result", "VerifyTime", "Error", "Traces",
+ });
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_descriptor =
+ getDescriptor().getMessageTypes().get(26);
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_events_cloud_networkmanagement_v1_ConnectivityTestEventData_descriptor,
+ new java.lang.String[] {
+ "Payload", "Payload",
+ });
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.rpc.StatusProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DeliverInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DeliverInfo.java
new file mode 100644
index 00000000..debd73da
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DeliverInfo.java
@@ -0,0 +1,1084 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * Details of the final state "deliver" and associated resource.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.DeliverInfo}
+ */
+public final class DeliverInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.DeliverInfo)
+ DeliverInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DeliverInfo.newBuilder() to construct.
+ private DeliverInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DeliverInfo() {
+ target_ = 0;
+ resourceUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DeliverInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.class,
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deliver target types:
+ *
+ *
+ * Protobuf enum {@code google.events.cloud.networkmanagement.v1.DeliverInfo.Target}
+ */
+ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Target not specified.
+ *
+ *
+ * TARGET_UNSPECIFIED = 0;
+ */
+ TARGET_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Target is a Compute Engine instance.
+ *
+ *
+ * INSTANCE = 1;
+ */
+ INSTANCE(1),
+ /**
+ *
+ *
+ *
+ * Target is the internet.
+ *
+ *
+ * INTERNET = 2;
+ */
+ INTERNET(2),
+ /**
+ *
+ *
+ *
+ * Target is a Google API.
+ *
+ *
+ * GOOGLE_API = 3;
+ */
+ GOOGLE_API(3),
+ /**
+ *
+ *
+ *
+ * Target is a Google Kubernetes Engine cluster master.
+ *
+ *
+ * GKE_MASTER = 4;
+ */
+ GKE_MASTER(4),
+ /**
+ *
+ *
+ *
+ * Target is a Cloud SQL instance.
+ *
+ *
+ * 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),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Target not specified.
+ *
+ *
+ * TARGET_UNSPECIFIED = 0;
+ */
+ public static final int TARGET_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Target is a Compute Engine instance.
+ *
+ *
+ * INSTANCE = 1;
+ */
+ public static final int INSTANCE_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Target is the internet.
+ *
+ *
+ * INTERNET = 2;
+ */
+ public static final int INTERNET_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Target is a Google API.
+ *
+ *
+ * GOOGLE_API = 3;
+ */
+ public static final int GOOGLE_API_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Target is a Google Kubernetes Engine cluster master.
+ *
+ *
+ * GKE_MASTER = 4;
+ */
+ public static final int GKE_MASTER_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * Target is a Cloud SQL instance.
+ *
+ *
+ * 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;
+
+ 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 Target 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 Target forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TARGET_UNSPECIFIED;
+ case 1:
+ return INSTANCE;
+ case 2:
+ return INTERNET;
+ case 3:
+ return GOOGLE_API;
+ case 4:
+ 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;
+ 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 Target findValueByNumber(int number) {
+ return Target.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.events.cloud.networkmanagement.v1.DeliverInfo.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final Target[] VALUES = values();
+
+ public static Target 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 Target(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.events.cloud.networkmanagement.v1.DeliverInfo.Target)
+ }
+
+ public static final int TARGET_FIELD_NUMBER = 1;
+ private int target_ = 0;
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @return The enum numeric value on the wire for target.
+ */
+ @java.lang.Override
+ public int getTargetValue() {
+ return target_;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @return The target.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target getTarget() {
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target result =
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target.forNumber(target_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int RESOURCE_URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object resourceUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ @java.lang.Override
+ public java.lang.String getResourceUri() {
+ java.lang.Object ref = resourceUri_;
+ 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();
+ resourceUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResourceUriBytes() {
+ java.lang.Object ref = resourceUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceUri_ = 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 (target_
+ != com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target.TARGET_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, target_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (target_
+ != com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target.TARGET_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, target_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceUri_);
+ }
+ 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.events.cloud.networkmanagement.v1.DeliverInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo other =
+ (com.google.events.cloud.networkmanagement.v1.DeliverInfo) obj;
+
+ if (target_ != other.target_) return false;
+ if (!getResourceUri().equals(other.getResourceUri())) 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) + TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + target_;
+ hash = (37 * hash) + RESOURCE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo 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.events.cloud.networkmanagement.v1.DeliverInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo 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.events.cloud.networkmanagement.v1.DeliverInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo 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.events.cloud.networkmanagement.v1.DeliverInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo 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.events.cloud.networkmanagement.v1.DeliverInfo 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;
+ }
+ /**
+ *
+ *
+ *
+ * Details of the final state "deliver" and associated resource.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.DeliverInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.DeliverInfo)
+ com.google.events.cloud.networkmanagement.v1.DeliverInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.class,
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.DeliverInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ target_ = 0;
+ resourceUri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DeliverInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DeliverInfo getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DeliverInfo build() {
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DeliverInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo result =
+ new com.google.events.cloud.networkmanagement.v1.DeliverInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.events.cloud.networkmanagement.v1.DeliverInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.target_ = target_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.resourceUri_ = resourceUri_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.DeliverInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.DeliverInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.DeliverInfo other) {
+ if (other == com.google.events.cloud.networkmanagement.v1.DeliverInfo.getDefaultInstance())
+ return this;
+ if (other.target_ != 0) {
+ setTargetValue(other.getTargetValue());
+ }
+ if (!other.getResourceUri().isEmpty()) {
+ resourceUri_ = other.resourceUri_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ target_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18:
+ {
+ resourceUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int target_ = 0;
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @return The enum numeric value on the wire for target.
+ */
+ @java.lang.Override
+ public int getTargetValue() {
+ return target_;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @param value The enum numeric value on the wire for target to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetValue(int value) {
+ target_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @return The target.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target getTarget() {
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target result =
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target.forNumber(target_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @param value The target to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTarget(
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ target_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTarget() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ target_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resourceUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ public java.lang.String getResourceUri() {
+ java.lang.Object ref = resourceUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ public com.google.protobuf.ByteString getResourceUriBytes() {
+ java.lang.Object ref = resourceUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @param value The resourceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resourceUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceUri() {
+ resourceUri_ = getDefaultInstance().getResourceUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @param value The bytes for resourceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ resourceUri_ = value;
+ bitField0_ |= 0x00000002;
+ 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.events.cloud.networkmanagement.v1.DeliverInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.DeliverInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.DeliverInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.DeliverInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DeliverInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeliverInfo 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.events.cloud.networkmanagement.v1.DeliverInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java
new file mode 100644
index 00000000..bae2e6c7
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java
@@ -0,0 +1,75 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface DeliverInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.DeliverInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @return The enum numeric value on the wire for target.
+ */
+ int getTargetValue();
+ /**
+ *
+ *
+ *
+ * Target type where the packet is delivered to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DeliverInfo.Target target = 1;
+ *
+ * @return The target.
+ */
+ com.google.events.cloud.networkmanagement.v1.DeliverInfo.Target getTarget();
+
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ java.lang.String getResourceUri();
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is delivered to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ com.google.protobuf.ByteString getResourceUriBytes();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DropInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DropInfo.java
new file mode 100644
index 00000000..8e6c95bd
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DropInfo.java
@@ -0,0 +1,1841 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * Details of the final state "drop" and associated resource.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.DropInfo}
+ */
+public final class DropInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.DropInfo)
+ DropInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DropInfo.newBuilder() to construct.
+ private DropInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DropInfo() {
+ cause_ = 0;
+ resourceUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DropInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DropInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DropInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.DropInfo.class,
+ com.google.events.cloud.networkmanagement.v1.DropInfo.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Drop cause types:
+ *
+ *
+ * Protobuf enum {@code google.events.cloud.networkmanagement.v1.DropInfo.Cause}
+ */
+ public enum Cause implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Cause is unspecified.
+ *
+ *
+ * CAUSE_UNSPECIFIED = 0;
+ */
+ CAUSE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Destination external address cannot be resolved to a known target. If
+ * the address is used in a Google Cloud project, provide the project ID
+ * as test input.
+ *
+ *
+ * UNKNOWN_EXTERNAL_ADDRESS = 1;
+ */
+ UNKNOWN_EXTERNAL_ADDRESS(1),
+ /**
+ *
+ *
+ *
+ * A Compute Engine instance can only send or receive a packet with a
+ * foreign IP address if ip_forward is enabled.
+ *
+ *
+ * FOREIGN_IP_DISALLOWED = 2;
+ */
+ FOREIGN_IP_DISALLOWED(2),
+ /**
+ *
+ *
+ *
+ * Dropped due to a firewall rule, unless allowed due to connection
+ * tracking.
+ *
+ *
+ * FIREWALL_RULE = 3;
+ */
+ FIREWALL_RULE(3),
+ /**
+ *
+ *
+ *
+ * Dropped due to no routes.
+ *
+ *
+ * NO_ROUTE = 4;
+ */
+ NO_ROUTE(4),
+ /**
+ *
+ *
+ *
+ * Dropped due to invalid route. Route's next hop is a blackhole.
+ *
+ *
+ * ROUTE_BLACKHOLE = 5;
+ */
+ ROUTE_BLACKHOLE(5),
+ /**
+ *
+ *
+ *
+ * Packet is sent to a wrong (unintended) network. Example: you trace a
+ * packet from VM1:Network1 to VM2:Network2, however, the route configured
+ * in Network1 sends the packet destined for VM2's IP addresss to Network3.
+ *
+ *
+ * ROUTE_WRONG_NETWORK = 6;
+ */
+ ROUTE_WRONG_NETWORK(6),
+ /**
+ *
+ *
+ *
+ * Packet with internal destination address sent to the internet gateway.
+ *
+ *
+ * PRIVATE_TRAFFIC_TO_INTERNET = 7;
+ */
+ PRIVATE_TRAFFIC_TO_INTERNET(7),
+ /**
+ *
+ *
+ *
+ * Instance with only an internal IP address tries to access Google API and
+ * services, but private Google access is not enabled.
+ *
+ *
+ * PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8;
+ */
+ PRIVATE_GOOGLE_ACCESS_DISALLOWED(8),
+ /**
+ *
+ *
+ *
+ * Instance with only an internal IP address tries to access external hosts,
+ * but Cloud NAT is not enabled in the subnet, unless special configurations
+ * on a VM allow this connection.
+ *
+ *
+ * NO_EXTERNAL_ADDRESS = 9;
+ */
+ NO_EXTERNAL_ADDRESS(9),
+ /**
+ *
+ *
+ *
+ * Destination internal address cannot be resolved to a known target. If
+ * this is a shared VPC scenario, verify if the service project ID is
+ * provided as test input. Otherwise, verify if the IP address is being
+ * used in the project.
+ *
+ *
+ * UNKNOWN_INTERNAL_ADDRESS = 10;
+ */
+ UNKNOWN_INTERNAL_ADDRESS(10),
+ /**
+ *
+ *
+ *
+ * Forwarding rule's protocol and ports do not match the packet header.
+ *
+ *
+ * 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),
+ /**
+ *
+ *
+ *
+ * Forwarding rule does not have backends configured.
+ *
+ *
+ * FORWARDING_RULE_NO_INSTANCES = 12;
+ */
+ FORWARDING_RULE_NO_INSTANCES(12),
+ /**
+ *
+ *
+ *
+ * Firewalls block the health check probes to the backends and cause
+ * the backends to be unavailable for traffic from the load balancer.
+ * For more details, see [Health check firewall
+ * rules](https://cloud.google.com/load-balancing/docs/health-checks#firewall_rules).
+ *
+ *
+ * FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK = 13;
+ */
+ FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK(13),
+ /**
+ *
+ *
+ *
+ * Packet is sent from or to a Compute Engine instance that is not in a
+ * running state.
+ *
+ *
+ * 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),
+ /**
+ *
+ *
+ *
+ * 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
+ * more details.
+ *
+ *
+ * TRAFFIC_TYPE_BLOCKED = 15;
+ */
+ TRAFFIC_TYPE_BLOCKED(15),
+ /**
+ *
+ *
+ *
+ * Access to Google Kubernetes Engine cluster master's endpoint is not
+ * authorized. See [Access to the cluster
+ * endpoints](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#access_to_the_cluster_endpoints)
+ * for more details.
+ *
+ *
+ * GKE_MASTER_UNAUTHORIZED_ACCESS = 16;
+ */
+ GKE_MASTER_UNAUTHORIZED_ACCESS(16),
+ /**
+ *
+ *
+ *
+ * Access to the Cloud SQL instance endpoint is not authorized.
+ * See [Authorizing with authorized
+ * networks](https://cloud.google.com/sql/docs/mysql/authorize-networks) for
+ * more details.
+ *
+ *
+ * CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS = 17;
+ */
+ CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS(17),
+ /**
+ *
+ *
+ *
+ * Packet was dropped inside Google Kubernetes Engine Service.
+ *
+ *
+ * DROPPED_INSIDE_GKE_SERVICE = 18;
+ */
+ DROPPED_INSIDE_GKE_SERVICE(18),
+ /**
+ *
+ *
+ *
+ * Packet was dropped inside Cloud SQL Service.
+ *
+ *
+ * DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19;
+ */
+ DROPPED_INSIDE_CLOUD_SQL_SERVICE(19),
+ /**
+ *
+ *
+ *
+ * Packet was dropped because there is no peering between the originating
+ * network and the Google Managed Services Network.
+ *
+ *
+ * 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),
+ /**
+ *
+ *
+ *
+ * Packet was dropped because the Cloud SQL instance has neither a private
+ * nor a public IP address.
+ *
+ *
+ * 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),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Cause is unspecified.
+ *
+ *
+ * CAUSE_UNSPECIFIED = 0;
+ */
+ public static final int CAUSE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Destination external address cannot be resolved to a known target. If
+ * the address is used in a Google Cloud project, provide the project ID
+ * as test input.
+ *
+ *
+ * UNKNOWN_EXTERNAL_ADDRESS = 1;
+ */
+ public static final int UNKNOWN_EXTERNAL_ADDRESS_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * A Compute Engine instance can only send or receive a packet with a
+ * foreign IP address if ip_forward is enabled.
+ *
+ *
+ * FOREIGN_IP_DISALLOWED = 2;
+ */
+ public static final int FOREIGN_IP_DISALLOWED_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Dropped due to a firewall rule, unless allowed due to connection
+ * tracking.
+ *
+ *
+ * FIREWALL_RULE = 3;
+ */
+ public static final int FIREWALL_RULE_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Dropped due to no routes.
+ *
+ *
+ * NO_ROUTE = 4;
+ */
+ public static final int NO_ROUTE_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * Dropped due to invalid route. Route's next hop is a blackhole.
+ *
+ *
+ * ROUTE_BLACKHOLE = 5;
+ */
+ public static final int ROUTE_BLACKHOLE_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * Packet is sent to a wrong (unintended) network. Example: you trace a
+ * packet from VM1:Network1 to VM2:Network2, however, the route configured
+ * in Network1 sends the packet destined for VM2's IP addresss to Network3.
+ *
+ *
+ * ROUTE_WRONG_NETWORK = 6;
+ */
+ public static final int ROUTE_WRONG_NETWORK_VALUE = 6;
+ /**
+ *
+ *
+ *
+ * Packet with internal destination address sent to the internet gateway.
+ *
+ *
+ * PRIVATE_TRAFFIC_TO_INTERNET = 7;
+ */
+ public static final int PRIVATE_TRAFFIC_TO_INTERNET_VALUE = 7;
+ /**
+ *
+ *
+ *
+ * Instance with only an internal IP address tries to access Google API and
+ * services, but private Google access is not enabled.
+ *
+ *
+ * PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8;
+ */
+ public static final int PRIVATE_GOOGLE_ACCESS_DISALLOWED_VALUE = 8;
+ /**
+ *
+ *
+ *
+ * Instance with only an internal IP address tries to access external hosts,
+ * but Cloud NAT is not enabled in the subnet, unless special configurations
+ * on a VM allow this connection.
+ *
+ *
+ * NO_EXTERNAL_ADDRESS = 9;
+ */
+ public static final int NO_EXTERNAL_ADDRESS_VALUE = 9;
+ /**
+ *
+ *
+ *
+ * Destination internal address cannot be resolved to a known target. If
+ * this is a shared VPC scenario, verify if the service project ID is
+ * provided as test input. Otherwise, verify if the IP address is being
+ * used in the project.
+ *
+ *
+ * UNKNOWN_INTERNAL_ADDRESS = 10;
+ */
+ public static final int UNKNOWN_INTERNAL_ADDRESS_VALUE = 10;
+ /**
+ *
+ *
+ *
+ * Forwarding rule's protocol and ports do not match the packet header.
+ *
+ *
+ * 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;
+ /**
+ *
+ *
+ *
+ * Forwarding rule does not have backends configured.
+ *
+ *
+ * FORWARDING_RULE_NO_INSTANCES = 12;
+ */
+ public static final int FORWARDING_RULE_NO_INSTANCES_VALUE = 12;
+ /**
+ *
+ *
+ *
+ * Firewalls block the health check probes to the backends and cause
+ * the backends to be unavailable for traffic from the load balancer.
+ * For more details, see [Health check firewall
+ * rules](https://cloud.google.com/load-balancing/docs/health-checks#firewall_rules).
+ *
+ *
+ * FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK = 13;
+ */
+ public static final int FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK_VALUE = 13;
+ /**
+ *
+ *
+ *
+ * Packet is sent from or to a Compute Engine instance that is not in a
+ * running state.
+ *
+ *
+ * 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;
+ /**
+ *
+ *
+ *
+ * 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
+ * more details.
+ *
+ *
+ * TRAFFIC_TYPE_BLOCKED = 15;
+ */
+ public static final int TRAFFIC_TYPE_BLOCKED_VALUE = 15;
+ /**
+ *
+ *
+ *
+ * Access to Google Kubernetes Engine cluster master's endpoint is not
+ * authorized. See [Access to the cluster
+ * endpoints](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#access_to_the_cluster_endpoints)
+ * for more details.
+ *
+ *
+ * GKE_MASTER_UNAUTHORIZED_ACCESS = 16;
+ */
+ public static final int GKE_MASTER_UNAUTHORIZED_ACCESS_VALUE = 16;
+ /**
+ *
+ *
+ *
+ * Access to the Cloud SQL instance endpoint is not authorized.
+ * See [Authorizing with authorized
+ * networks](https://cloud.google.com/sql/docs/mysql/authorize-networks) for
+ * more details.
+ *
+ *
+ * CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS = 17;
+ */
+ public static final int CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS_VALUE = 17;
+ /**
+ *
+ *
+ *
+ * Packet was dropped inside Google Kubernetes Engine Service.
+ *
+ *
+ * DROPPED_INSIDE_GKE_SERVICE = 18;
+ */
+ public static final int DROPPED_INSIDE_GKE_SERVICE_VALUE = 18;
+ /**
+ *
+ *
+ *
+ * Packet was dropped inside Cloud SQL Service.
+ *
+ *
+ * DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19;
+ */
+ public static final int DROPPED_INSIDE_CLOUD_SQL_SERVICE_VALUE = 19;
+ /**
+ *
+ *
+ *
+ * Packet was dropped because there is no peering between the originating
+ * network and the Google Managed Services Network.
+ *
+ *
+ * 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;
+ /**
+ *
+ *
+ *
+ * Packet was dropped because the Cloud SQL instance has neither a private
+ * nor a public IP address.
+ *
+ *
+ * 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) {
+ 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 Cause 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 Cause forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CAUSE_UNSPECIFIED;
+ case 1:
+ return UNKNOWN_EXTERNAL_ADDRESS;
+ case 2:
+ return FOREIGN_IP_DISALLOWED;
+ case 3:
+ return FIREWALL_RULE;
+ case 4:
+ return NO_ROUTE;
+ case 5:
+ return ROUTE_BLACKHOLE;
+ case 6:
+ return ROUTE_WRONG_NETWORK;
+ case 7:
+ return PRIVATE_TRAFFIC_TO_INTERNET;
+ case 8:
+ return PRIVATE_GOOGLE_ACCESS_DISALLOWED;
+ case 9:
+ return NO_EXTERNAL_ADDRESS;
+ case 10:
+ 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:
+ return GKE_MASTER_UNAUTHORIZED_ACCESS;
+ case 17:
+ return CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS;
+ case 18:
+ return DROPPED_INSIDE_GKE_SERVICE;
+ case 19:
+ 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;
+ }
+ }
+
+ 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 Cause findValueByNumber(int number) {
+ return Cause.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.events.cloud.networkmanagement.v1.DropInfo.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final Cause[] VALUES = values();
+
+ public static Cause 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 Cause(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.events.cloud.networkmanagement.v1.DropInfo.Cause)
+ }
+
+ public static final int CAUSE_FIELD_NUMBER = 1;
+ private int cause_ = 0;
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @return The enum numeric value on the wire for cause.
+ */
+ @java.lang.Override
+ public int getCauseValue() {
+ return cause_;
+ }
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @return The cause.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DropInfo.Cause getCause() {
+ com.google.events.cloud.networkmanagement.v1.DropInfo.Cause result =
+ com.google.events.cloud.networkmanagement.v1.DropInfo.Cause.forNumber(cause_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.DropInfo.Cause.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int RESOURCE_URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object resourceUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ @java.lang.Override
+ public java.lang.String getResourceUri() {
+ java.lang.Object ref = resourceUri_;
+ 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();
+ resourceUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResourceUriBytes() {
+ java.lang.Object ref = resourceUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceUri_ = 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 (cause_
+ != com.google.events.cloud.networkmanagement.v1.DropInfo.Cause.CAUSE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, cause_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cause_
+ != com.google.events.cloud.networkmanagement.v1.DropInfo.Cause.CAUSE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, cause_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceUri_);
+ }
+ 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.events.cloud.networkmanagement.v1.DropInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.DropInfo other =
+ (com.google.events.cloud.networkmanagement.v1.DropInfo) obj;
+
+ if (cause_ != other.cause_) return false;
+ if (!getResourceUri().equals(other.getResourceUri())) 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) + CAUSE_FIELD_NUMBER;
+ hash = (53 * hash) + cause_;
+ hash = (37 * hash) + RESOURCE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo 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.events.cloud.networkmanagement.v1.DropInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo 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.events.cloud.networkmanagement.v1.DropInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo 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.events.cloud.networkmanagement.v1.DropInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo 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.events.cloud.networkmanagement.v1.DropInfo 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;
+ }
+ /**
+ *
+ *
+ *
+ * Details of the final state "drop" and associated resource.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.DropInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.DropInfo)
+ com.google.events.cloud.networkmanagement.v1.DropInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DropInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DropInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.DropInfo.class,
+ com.google.events.cloud.networkmanagement.v1.DropInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.DropInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ cause_ = 0;
+ resourceUri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_DropInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DropInfo getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.DropInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DropInfo build() {
+ com.google.events.cloud.networkmanagement.v1.DropInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DropInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.DropInfo result =
+ new com.google.events.cloud.networkmanagement.v1.DropInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.events.cloud.networkmanagement.v1.DropInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.cause_ = cause_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.resourceUri_ = resourceUri_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.DropInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.DropInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.DropInfo other) {
+ if (other == com.google.events.cloud.networkmanagement.v1.DropInfo.getDefaultInstance())
+ return this;
+ if (other.cause_ != 0) {
+ setCauseValue(other.getCauseValue());
+ }
+ if (!other.getResourceUri().isEmpty()) {
+ resourceUri_ = other.resourceUri_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ cause_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18:
+ {
+ resourceUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int cause_ = 0;
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @return The enum numeric value on the wire for cause.
+ */
+ @java.lang.Override
+ public int getCauseValue() {
+ return cause_;
+ }
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @param value The enum numeric value on the wire for cause to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCauseValue(int value) {
+ cause_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @return The cause.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.DropInfo.Cause getCause() {
+ com.google.events.cloud.networkmanagement.v1.DropInfo.Cause result =
+ com.google.events.cloud.networkmanagement.v1.DropInfo.Cause.forNumber(cause_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.DropInfo.Cause.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @param value The cause to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCause(com.google.events.cloud.networkmanagement.v1.DropInfo.Cause value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ cause_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCause() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ cause_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resourceUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ public java.lang.String getResourceUri() {
+ java.lang.Object ref = resourceUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ public com.google.protobuf.ByteString getResourceUriBytes() {
+ java.lang.Object ref = resourceUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @param value The resourceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resourceUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceUri() {
+ resourceUri_ = getDefaultInstance().getResourceUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @param value The bytes for resourceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ resourceUri_ = value;
+ bitField0_ |= 0x00000002;
+ 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.events.cloud.networkmanagement.v1.DropInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.DropInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.DropInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.DropInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.DropInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DropInfo 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.events.cloud.networkmanagement.v1.DropInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DropInfoOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DropInfoOrBuilder.java
new file mode 100644
index 00000000..7c0423d9
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/DropInfoOrBuilder.java
@@ -0,0 +1,75 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface DropInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.DropInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @return The enum numeric value on the wire for cause.
+ */
+ int getCauseValue();
+ /**
+ *
+ *
+ *
+ * Cause that the packet is dropped.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.DropInfo.Cause cause = 1;
+ *
+ * @return The cause.
+ */
+ com.google.events.cloud.networkmanagement.v1.DropInfo.Cause getCause();
+
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ java.lang.String getResourceUri();
+ /**
+ *
+ *
+ *
+ * URI of the resource that caused the drop.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ com.google.protobuf.ByteString getResourceUriBytes();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/Endpoint.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/Endpoint.java
new file mode 100644
index 00000000..306647b0
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/Endpoint.java
@@ -0,0 +1,5078 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * Source or destination of the Connectivity Test.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.Endpoint}
+ */
+public final class Endpoint extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.Endpoint)
+ EndpointOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Endpoint.newBuilder() to construct.
+ private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Endpoint() {
+ ipAddress_ = "";
+ instance_ = "";
+ gkeMasterCluster_ = "";
+ cloudSqlInstance_ = "";
+ network_ = "";
+ networkType_ = 0;
+ projectId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Endpoint();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.class,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * The type definition of an endpoint's network. Use one of the
+ * following choices:
+ *
+ *
+ * Protobuf enum {@code google.events.cloud.networkmanagement.v1.Endpoint.NetworkType}
+ */
+ public enum NetworkType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default type if unspecified.
+ *
+ *
+ * NETWORK_TYPE_UNSPECIFIED = 0;
+ */
+ NETWORK_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * A network hosted within Google Cloud.
+ * To receive more detailed output, specify the URI for the source or
+ * destination network.
+ *
+ *
+ * GCP_NETWORK = 1;
+ */
+ GCP_NETWORK(1),
+ /**
+ *
+ *
+ *
+ * A network hosted outside of Google Cloud.
+ * This can be an on-premises network, or a network hosted by another cloud
+ * provider.
+ *
+ *
+ * NON_GCP_NETWORK = 2;
+ */
+ NON_GCP_NETWORK(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Default type if unspecified.
+ *
+ *
+ * NETWORK_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int NETWORK_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * A network hosted within Google Cloud.
+ * To receive more detailed output, specify the URI for the source or
+ * destination network.
+ *
+ *
+ * GCP_NETWORK = 1;
+ */
+ public static final int GCP_NETWORK_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * A network hosted outside of Google Cloud.
+ * This can be an on-premises network, or a network hosted by another cloud
+ * provider.
+ *
+ *
+ * NON_GCP_NETWORK = 2;
+ */
+ public static final int NON_GCP_NETWORK_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 NetworkType 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 NetworkType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return NETWORK_TYPE_UNSPECIFIED;
+ case 1:
+ return GCP_NETWORK;
+ case 2:
+ return NON_GCP_NETWORK;
+ 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 NetworkType findValueByNumber(int number) {
+ return NetworkType.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.events.cloud.networkmanagement.v1.Endpoint.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final NetworkType[] VALUES = values();
+
+ public static NetworkType 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 NetworkType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.events.cloud.networkmanagement.v1.Endpoint.NetworkType)
+ }
+
+ public interface CloudFunctionEndpointOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * 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();
+ }
+ /**
+ *
+ *
+ *
+ * Wrapper for Cloud Function attributes.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint}
+ */
+ public static final class CloudFunctionEndpoint extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.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);
+ }
+
+ private CloudFunctionEndpoint() {
+ uri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new CloudFunctionEndpoint();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.class,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder
+ .class);
+ }
+
+ 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 [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;
+ }
+ }
+
+ 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.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint other =
+ (com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint) 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.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.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);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.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);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint 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 Function attributes.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.class,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder
+ .class);
+ }
+
+ // Construct using
+ // com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ uri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudFunctionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint build() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint result =
+ new com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.uri_ = uri_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint) {
+ return mergeFrom(
+ (com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint other) {
+ if (other
+ == com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()) return this;
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint)
+ private static final com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CloudFunctionEndpoint 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.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface AppEngineVersionEndpointOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * 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();
+ }
+ /**
+ *
+ *
+ *
+ * Wrapper for the App Engine service version attributes.
+ *
+ *
+ * Protobuf type {@code
+ * google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint}
+ */
+ public static final class AppEngineVersionEndpoint extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)
+ AppEngineVersionEndpointOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AppEngineVersionEndpoint.newBuilder() to construct.
+ private AppEngineVersionEndpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AppEngineVersionEndpoint() {
+ uri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AppEngineVersionEndpoint();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.class,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder
+ .class);
+ }
+
+ public static final int URI_FIELD_NUMBER = 1;
+
+ @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint other =
+ (com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.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.events.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.events.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.events.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.events.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.events.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.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .class,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ uri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_AppEngineVersionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ build() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint result =
+ new com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint(
+ this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.uri_ = uri_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint) {
+ return mergeFrom(
+ (com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint other) {
+ if (other
+ == com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()) return this;
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object 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.
+ */
+ 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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint)
+ private static final com.google.events.cloud.networkmanagement.v1.Endpoint
+ .AppEngineVersionEndpoint
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AppEngineVersionEndpoint 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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface CloudRunRevisionEndpointOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint}
+ */
+ public static final class CloudRunRevisionEndpoint extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.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();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.class,
+ com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint other =
+ (com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.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.events.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.events.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.events.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.events.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.events.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.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .class,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ uri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_CloudRunRevisionEndpoint_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ build() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint result =
+ new com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint(
+ this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.uri_ = uri_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint) {
+ return mergeFrom(
+ (com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint other) {
+ if (other
+ == com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()) return this;
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object 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.
+ */
+ 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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint)
+ private static final com.google.events.cloud.networkmanagement.v1.Endpoint
+ .CloudRunRevisionEndpoint
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CloudRunRevisionEndpoint 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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ 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).
+ *
+ *
+ * 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](/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 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.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ cloudFunction_;
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return The cloudFunction.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ getCloudFunction() {
+ return cloudFunction_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder
+ getCloudFunctionOrBuilder() {
+ return cloudFunction_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
+ }
+
+ public static final int APP_ENGINE_VERSION_FIELD_NUMBER = 11;
+ private com.google.events.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.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ getAppEngineVersion() {
+ return appEngineVersion_ == null
+ ? com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder
+ getAppEngineVersionOrBuilder() {
+ return appEngineVersion_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ }
+
+ public static final int CLOUD_RUN_REVISION_FIELD_NUMBER = 12;
+ private com.google.events.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.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ getCloudRunRevision() {
+ return cloudRunRevision_ == null
+ ? com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ return cloudRunRevision_ == null
+ ? com.google.events.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.events.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.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return The networkType.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType getNetworkType() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType result =
+ com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType.forNumber(networkType_);
+ return result == null
+ ? com.google.events.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.events.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());
+ }
+ 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.events.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());
+ }
+ 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.events.cloud.networkmanagement.v1.Endpoint)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.Endpoint other =
+ (com.google.events.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 (!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) + 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.events.cloud.networkmanagement.v1.Endpoint parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.cloud.networkmanagement.v1.Endpoint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.cloud.networkmanagement.v1.Endpoint parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.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.events.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.events.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.events.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.events.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.events.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.events.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.events.cloud.networkmanagement.v1.Endpoint}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.Endpoint)
+ com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.class,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.Endpoint.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ ipAddress_ = "";
+ port_ = 0;
+ instance_ = "";
+ gkeMasterCluster_ = "";
+ cloudSqlInstance_ = "";
+ cloudFunction_ = null;
+ if (cloudFunctionBuilder_ != null) {
+ cloudFunctionBuilder_.dispose();
+ cloudFunctionBuilder_ = null;
+ }
+ appEngineVersion_ = null;
+ if (appEngineVersionBuilder_ != null) {
+ appEngineVersionBuilder_.dispose();
+ appEngineVersionBuilder_ = null;
+ }
+ cloudRunRevision_ = null;
+ if (cloudRunRevisionBuilder_ != null) {
+ cloudRunRevisionBuilder_.dispose();
+ cloudRunRevisionBuilder_ = null;
+ }
+ network_ = "";
+ networkType_ = 0;
+ projectId_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_Endpoint_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.Endpoint.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint build() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint result =
+ new com.google.events.cloud.networkmanagement.v1.Endpoint(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.events.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.gkeMasterCluster_ = gkeMasterCluster_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.cloudSqlInstance_ = cloudSqlInstance_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.cloudFunction_ =
+ cloudFunctionBuilder_ == null ? cloudFunction_ : cloudFunctionBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.appEngineVersion_ =
+ appEngineVersionBuilder_ == null ? appEngineVersion_ : appEngineVersionBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.cloudRunRevision_ =
+ cloudRunRevisionBuilder_ == null ? cloudRunRevision_ : cloudRunRevisionBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.network_ = network_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.networkType_ = networkType_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.projectId_ = projectId_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.Endpoint) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.Endpoint) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.Endpoint other) {
+ if (other == com.google.events.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.getGkeMasterCluster().isEmpty()) {
+ gkeMasterCluster_ = other.gkeMasterCluster_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getCloudSqlInstance().isEmpty()) {
+ cloudSqlInstance_ = other.cloudSqlInstance_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (other.hasCloudFunction()) {
+ mergeCloudFunction(other.getCloudFunction());
+ }
+ if (other.hasAppEngineVersion()) {
+ mergeAppEngineVersion(other.getAppEngineVersion());
+ }
+ if (other.hasCloudRunRevision()) {
+ mergeCloudRunRevision(other.getCloudRunRevision());
+ }
+ if (!other.getNetwork().isEmpty()) {
+ network_ = other.network_;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ if (other.networkType_ != 0) {
+ setNetworkTypeValue(other.getNetworkTypeValue());
+ }
+ if (!other.getProjectId().isEmpty()) {
+ projectId_ = other.projectId_;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ 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_ |= 0x00000100;
+ break;
+ } // case 34
+ case 40:
+ {
+ networkType_ = input.readEnum();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 40
+ case 50:
+ {
+ projectId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 50
+ case 58:
+ {
+ gkeMasterCluster_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 58
+ case 66:
+ {
+ cloudSqlInstance_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 66
+ case 82:
+ {
+ input.readMessage(getCloudFunctionFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 82
+ case 90:
+ {
+ input.readMessage(
+ getAppEngineVersionFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 90
+ case 98:
+ {
+ input.readMessage(
+ getCloudRunRevisionFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 98
+ 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 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).
+ *
+ *
+ * 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](/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](/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](/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](/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 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_ |= 0x00000008;
+ 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;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGkeMasterCluster() {
+ gkeMasterCluster_ = getDefaultInstance().getGkeMasterCluster();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ 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_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object cloudSqlInstance_ = "";
+ /**
+ *
+ *
+ *
+ * A [Cloud SQL](https://cloud.google.com/sql) instance URI.
+ *
+ *
+ * string cloud_sql_instance = 8;
+ *
+ * @return The cloudSqlInstance.
+ */
+ 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;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud SQL](https://cloud.google.com/sql) instance URI.
+ *
+ *
+ * string cloud_sql_instance = 8;
+ *
+ * @return The bytes for cloudSqlInstance.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud SQL](https://cloud.google.com/sql) instance URI.
+ *
+ *
+ * string cloud_sql_instance = 8;
+ *
+ * @param value The cloudSqlInstance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCloudSqlInstance(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cloudSqlInstance_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud SQL](https://cloud.google.com/sql) instance URI.
+ *
+ *
+ * string cloud_sql_instance = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCloudSqlInstance() {
+ cloudSqlInstance_ = getDefaultInstance().getCloudSqlInstance();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud SQL](https://cloud.google.com/sql) instance URI.
+ *
+ *
+ * string cloud_sql_instance = 8;
+ *
+ * @param value The bytes for cloudSqlInstance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ cloudSqlInstance_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ cloudFunction_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder>
+ cloudFunctionBuilder_;
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return Whether the cloudFunction field is set.
+ */
+ public boolean hasCloudFunction() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return The cloudFunction.
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ getCloudFunction() {
+ if (cloudFunctionBuilder_ == null) {
+ return cloudFunction_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
+ } else {
+ return cloudFunctionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public Builder setCloudFunction(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint value) {
+ if (cloudFunctionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cloudFunction_ = value;
+ } else {
+ cloudFunctionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public Builder setCloudFunction(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder
+ builderForValue) {
+ if (cloudFunctionBuilder_ == null) {
+ cloudFunction_ = builderForValue.build();
+ } else {
+ cloudFunctionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public Builder mergeCloudFunction(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint value) {
+ if (cloudFunctionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && cloudFunction_ != null
+ && cloudFunction_
+ != com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()) {
+ getCloudFunctionBuilder().mergeFrom(value);
+ } else {
+ cloudFunction_ = value;
+ }
+ } else {
+ cloudFunctionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public Builder clearCloudFunction() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ cloudFunction_ = null;
+ if (cloudFunctionBuilder_ != null) {
+ cloudFunctionBuilder_.dispose();
+ cloudFunctionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder
+ getCloudFunctionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getCloudFunctionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder
+ getCloudFunctionOrBuilder() {
+ if (cloudFunctionBuilder_ != null) {
+ return cloudFunctionBuilder_.getMessageOrBuilder();
+ } else {
+ return cloudFunction_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint
+ .getDefaultInstance()
+ : cloudFunction_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpointOrBuilder>
+ getCloudFunctionFieldBuilder() {
+ if (cloudFunctionBuilder_ == null) {
+ cloudFunctionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.Endpoint
+ .CloudFunctionEndpointOrBuilder>(
+ getCloudFunction(), getParentForChildren(), isClean());
+ cloudFunction_ = null;
+ }
+ return cloudFunctionBuilder_;
+ }
+
+ private com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ appEngineVersion_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder,
+ com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return Whether the appEngineVersion field is set.
+ */
+ public boolean hasAppEngineVersion() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ getAppEngineVersion() {
+ if (appEngineVersionBuilder_ == null) {
+ return appEngineVersion_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()
+ : appEngineVersion_;
+ } else {
+ return appEngineVersionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ public Builder setAppEngineVersion(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ appEngineVersion_ = value;
+ } else {
+ appEngineVersionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ 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).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ public Builder setAppEngineVersion(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder
+ builderForValue) {
+ if (appEngineVersionBuilder_ == null) {
+ appEngineVersion_ = builderForValue.build();
+ } else {
+ appEngineVersionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ 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).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ public Builder mergeAppEngineVersion(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint value) {
+ if (appEngineVersionBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && appEngineVersion_ != null
+ && appEngineVersion_
+ != com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .getDefaultInstance()) {
+ getAppEngineVersionBuilder().mergeFrom(value);
+ } else {
+ appEngineVersion_ = value;
+ }
+ } else {
+ appEngineVersionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000040;
+ 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).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ public Builder clearAppEngineVersion() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ appEngineVersion_ = null;
+ if (appEngineVersionBuilder_ != null) {
+ appEngineVersionBuilder_.dispose();
+ appEngineVersionBuilder_ = null;
+ }
+ 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).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder
+ getAppEngineVersionBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getAppEngineVersionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder
+ getAppEngineVersionOrBuilder() {
+ if (appEngineVersionBuilder_ != null) {
+ return appEngineVersionBuilder_.getMessageOrBuilder();
+ } else {
+ return appEngineVersion_ == null
+ ? com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpointOrBuilder>
+ getAppEngineVersionFieldBuilder() {
+ if (appEngineVersionBuilder_ == null) {
+ appEngineVersionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint
+ .Builder,
+ com.google.events.cloud.networkmanagement.v1.Endpoint
+ .AppEngineVersionEndpointOrBuilder>(
+ getAppEngineVersion(), getParentForChildren(), isClean());
+ appEngineVersion_ = null;
+ }
+ return appEngineVersionBuilder_;
+ }
+
+ private com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ cloudRunRevision_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder>
+ cloudRunRevisionBuilder_;
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return Whether the cloudRunRevision field is set.
+ */
+ public boolean hasCloudRunRevision() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ getCloudRunRevision() {
+ if (cloudRunRevisionBuilder_ == null) {
+ return cloudRunRevision_ == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()
+ : cloudRunRevision_;
+ } else {
+ return cloudRunRevisionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ public Builder setCloudRunRevision(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cloudRunRevision_ = value;
+ } else {
+ cloudRunRevisionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ public Builder setCloudRunRevision(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder
+ builderForValue) {
+ if (cloudRunRevisionBuilder_ == null) {
+ cloudRunRevision_ = builderForValue.build();
+ } else {
+ cloudRunRevisionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ public Builder mergeCloudRunRevision(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint value) {
+ if (cloudRunRevisionBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && cloudRunRevision_ != null
+ && cloudRunRevision_
+ != com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .getDefaultInstance()) {
+ getCloudRunRevisionBuilder().mergeFrom(value);
+ } else {
+ cloudRunRevision_ = value;
+ }
+ } else {
+ cloudRunRevisionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ public Builder clearCloudRunRevision() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ cloudRunRevision_ = null;
+ if (cloudRunRevisionBuilder_ != null) {
+ cloudRunRevisionBuilder_.dispose();
+ cloudRunRevisionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder
+ getCloudRunRevisionBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getCloudRunRevisionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A [Cloud Run](https://cloud.google.com/run)
+ * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder() {
+ if (cloudRunRevisionBuilder_ != null) {
+ return cloudRunRevisionBuilder_.getMessageOrBuilder();
+ } else {
+ return cloudRunRevision_ == null
+ ? com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder>
+ getCloudRunRevisionFieldBuilder() {
+ if (cloudRunRevisionBuilder_ == null) {
+ cloudRunRevisionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint,
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint
+ .Builder,
+ com.google.events.cloud.networkmanagement.v1.Endpoint
+ .CloudRunRevisionEndpointOrBuilder>(
+ getCloudRunRevision(), getParentForChildren(), isClean());
+ cloudRunRevision_ = null;
+ }
+ return cloudRunRevisionBuilder_;
+ }
+
+ private java.lang.Object network_ = "";
+ /**
+ *
+ *
+ *
+ * A Compute Engine network URI.
+ *
+ *
+ * string network = 4;
+ *
+ * @return The network.
+ */
+ public java.lang.String getNetwork() {
+ java.lang.Object ref = network_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ network_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A Compute Engine network URI.
+ *
+ *
+ * string network = 4;
+ *
+ * @return The bytes for network.
+ */
+ public com.google.protobuf.ByteString getNetworkBytes() {
+ java.lang.Object ref = network_;
+ if (ref instanceof 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A Compute Engine network URI.
+ *
+ *
+ * string network = 4;
+ *
+ * @param value The network to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetwork(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ network_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A Compute Engine network URI.
+ *
+ *
+ * string network = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNetwork() {
+ network_ = getDefaultInstance().getNetwork();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A Compute Engine network URI.
+ *
+ *
+ * string network = 4;
+ *
+ * @param value The bytes for network to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ network_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ 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.events.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.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @param value The enum numeric value on the wire for networkType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkTypeValue(int value) {
+ networkType_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return The networkType.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType getNetworkType() {
+ com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType result =
+ com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType.forNumber(networkType_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @param value The networkType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkType(
+ com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
+ networkType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNetworkType() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ networkType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private 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.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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 This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000400);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000400;
+ 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.events.cloud.networkmanagement.v1.Endpoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.Endpoint)
+ private static final com.google.events.cloud.networkmanagement.v1.Endpoint DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.Endpoint();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.Endpoint getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Endpoint 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.events.cloud.networkmanagement.v1.Endpoint getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointInfo.java
new file mode 100644
index 00000000..e6c1bc94
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointInfo.java
@@ -0,0 +1,1548 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * For display only. The specification of the endpoints for the test.
+ * EndpointInfo is derived from source and destination Endpoint and validated
+ * by the backend data plane model.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.EndpointInfo}
+ */
+public final class EndpointInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.EndpointInfo)
+ EndpointInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use EndpointInfo.newBuilder() to construct.
+ private EndpointInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private EndpointInfo() {
+ sourceIp_ = "";
+ destinationIp_ = "";
+ protocol_ = "";
+ sourceNetworkUri_ = "";
+ destinationNetworkUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new EndpointInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.EndpointInfo.class,
+ com.google.events.cloud.networkmanagement.v1.EndpointInfo.Builder.class);
+ }
+
+ 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 DESTINATION_IP_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object destinationIp_ = "";
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @return The destinationIp.
+ */
+ @java.lang.Override
+ public java.lang.String getDestinationIp() {
+ java.lang.Object ref = destinationIp_;
+ 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();
+ destinationIp_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @return The bytes for destinationIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDestinationIpBytes() {
+ java.lang.Object ref = destinationIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ destinationIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROTOCOL_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object protocol_ = "";
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @return The protocol.
+ */
+ @java.lang.Override
+ public java.lang.String getProtocol() {
+ java.lang.Object ref = protocol_;
+ 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();
+ protocol_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @return The bytes for protocol.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProtocolBytes() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ protocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCE_PORT_FIELD_NUMBER = 4;
+ private int sourcePort_ = 0;
+ /**
+ *
+ *
+ *
+ * Source port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 source_port = 4;
+ *
+ * @return The sourcePort.
+ */
+ @java.lang.Override
+ public int getSourcePort() {
+ return sourcePort_;
+ }
+
+ public static final int DESTINATION_PORT_FIELD_NUMBER = 5;
+ private int destinationPort_ = 0;
+ /**
+ *
+ *
+ *
+ * Destination port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 destination_port = 5;
+ *
+ * @return The destinationPort.
+ */
+ @java.lang.Override
+ public int getDestinationPort() {
+ return destinationPort_;
+ }
+
+ public static final int SOURCE_NETWORK_URI_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object sourceNetworkUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @return The sourceNetworkUri.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceNetworkUri() {
+ java.lang.Object ref = sourceNetworkUri_;
+ 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();
+ sourceNetworkUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @return The bytes for sourceNetworkUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceNetworkUriBytes() {
+ java.lang.Object ref = sourceNetworkUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceNetworkUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESTINATION_NETWORK_URI_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object destinationNetworkUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @return The destinationNetworkUri.
+ */
+ @java.lang.Override
+ public java.lang.String getDestinationNetworkUri() {
+ java.lang.Object ref = destinationNetworkUri_;
+ 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();
+ destinationNetworkUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @return The bytes for destinationNetworkUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDestinationNetworkUriBytes() {
+ java.lang.Object ref = destinationNetworkUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ destinationNetworkUri_ = 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(sourceIp_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceIp_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationIp_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationIp_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, protocol_);
+ }
+ if (sourcePort_ != 0) {
+ output.writeInt32(4, sourcePort_);
+ }
+ if (destinationPort_ != 0) {
+ output.writeInt32(5, destinationPort_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceNetworkUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sourceNetworkUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationNetworkUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, destinationNetworkUri_);
+ }
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationIp_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationIp_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, protocol_);
+ }
+ if (sourcePort_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, sourcePort_);
+ }
+ if (destinationPort_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, destinationPort_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceNetworkUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sourceNetworkUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationNetworkUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, destinationNetworkUri_);
+ }
+ 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.events.cloud.networkmanagement.v1.EndpointInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.EndpointInfo other =
+ (com.google.events.cloud.networkmanagement.v1.EndpointInfo) obj;
+
+ if (!getSourceIp().equals(other.getSourceIp())) return false;
+ if (!getDestinationIp().equals(other.getDestinationIp())) return false;
+ if (!getProtocol().equals(other.getProtocol())) return false;
+ if (getSourcePort() != other.getSourcePort()) return false;
+ if (getDestinationPort() != other.getDestinationPort()) return false;
+ if (!getSourceNetworkUri().equals(other.getSourceNetworkUri())) return false;
+ if (!getDestinationNetworkUri().equals(other.getDestinationNetworkUri())) 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) + DESTINATION_IP_FIELD_NUMBER;
+ hash = (53 * hash) + getDestinationIp().hashCode();
+ hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
+ hash = (53 * hash) + getProtocol().hashCode();
+ hash = (37 * hash) + SOURCE_PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getSourcePort();
+ hash = (37 * hash) + DESTINATION_PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getDestinationPort();
+ hash = (37 * hash) + SOURCE_NETWORK_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceNetworkUri().hashCode();
+ hash = (37 * hash) + DESTINATION_NETWORK_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getDestinationNetworkUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo 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.events.cloud.networkmanagement.v1.EndpointInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo 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.events.cloud.networkmanagement.v1.EndpointInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo 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.events.cloud.networkmanagement.v1.EndpointInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo 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.events.cloud.networkmanagement.v1.EndpointInfo 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. The specification of the endpoints for the test.
+ * EndpointInfo is derived from source and destination Endpoint and validated
+ * by the backend data plane model.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.EndpointInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.EndpointInfo)
+ com.google.events.cloud.networkmanagement.v1.EndpointInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.EndpointInfo.class,
+ com.google.events.cloud.networkmanagement.v1.EndpointInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.EndpointInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ sourceIp_ = "";
+ destinationIp_ = "";
+ protocol_ = "";
+ sourcePort_ = 0;
+ destinationPort_ = 0;
+ sourceNetworkUri_ = "";
+ destinationNetworkUri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_EndpointInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.EndpointInfo getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.EndpointInfo build() {
+ com.google.events.cloud.networkmanagement.v1.EndpointInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.EndpointInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.EndpointInfo result =
+ new com.google.events.cloud.networkmanagement.v1.EndpointInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.events.cloud.networkmanagement.v1.EndpointInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.sourceIp_ = sourceIp_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.destinationIp_ = destinationIp_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.protocol_ = protocol_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.sourcePort_ = sourcePort_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.destinationPort_ = destinationPort_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.sourceNetworkUri_ = sourceNetworkUri_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.destinationNetworkUri_ = destinationNetworkUri_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.EndpointInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.EndpointInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.EndpointInfo other) {
+ if (other == com.google.events.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance())
+ return this;
+ if (!other.getSourceIp().isEmpty()) {
+ sourceIp_ = other.sourceIp_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getDestinationIp().isEmpty()) {
+ destinationIp_ = other.destinationIp_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getProtocol().isEmpty()) {
+ protocol_ = other.protocol_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.getSourcePort() != 0) {
+ setSourcePort(other.getSourcePort());
+ }
+ if (other.getDestinationPort() != 0) {
+ setDestinationPort(other.getDestinationPort());
+ }
+ if (!other.getSourceNetworkUri().isEmpty()) {
+ sourceNetworkUri_ = other.sourceNetworkUri_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (!other.getDestinationNetworkUri().isEmpty()) {
+ destinationNetworkUri_ = other.destinationNetworkUri_;
+ bitField0_ |= 0x00000040;
+ 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:
+ {
+ sourceIp_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ destinationIp_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ protocol_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32:
+ {
+ sourcePort_ = input.readInt32();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ case 40:
+ {
+ destinationPort_ = input.readInt32();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 50:
+ {
+ sourceNetworkUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58:
+ {
+ destinationNetworkUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private 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 java.lang.Object destinationIp_ = "";
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @return The destinationIp.
+ */
+ public java.lang.String getDestinationIp() {
+ java.lang.Object ref = destinationIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ destinationIp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @return The bytes for destinationIp.
+ */
+ public com.google.protobuf.ByteString getDestinationIpBytes() {
+ java.lang.Object ref = destinationIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ destinationIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @param value The destinationIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestinationIp(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destinationIp_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDestinationIp() {
+ destinationIp_ = getDefaultInstance().getDestinationIp();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @param value The bytes for destinationIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestinationIpBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ destinationIp_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object protocol_ = "";
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @return The protocol.
+ */
+ public java.lang.String getProtocol() {
+ java.lang.Object ref = protocol_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ protocol_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @return The bytes for protocol.
+ */
+ public com.google.protobuf.ByteString getProtocolBytes() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ protocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @param value The protocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocol(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ protocol_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProtocol() {
+ protocol_ = getDefaultInstance().getProtocol();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @param value The bytes for protocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocolBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ protocol_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int sourcePort_;
+ /**
+ *
+ *
+ *
+ * Source port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 source_port = 4;
+ *
+ * @return The sourcePort.
+ */
+ @java.lang.Override
+ public int getSourcePort() {
+ return sourcePort_;
+ }
+ /**
+ *
+ *
+ *
+ * Source port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 source_port = 4;
+ *
+ * @param value The sourcePort to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourcePort(int value) {
+
+ sourcePort_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Source port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 source_port = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourcePort() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ sourcePort_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int destinationPort_;
+ /**
+ *
+ *
+ *
+ * Destination port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 destination_port = 5;
+ *
+ * @return The destinationPort.
+ */
+ @java.lang.Override
+ public int getDestinationPort() {
+ return destinationPort_;
+ }
+ /**
+ *
+ *
+ *
+ * Destination port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 destination_port = 5;
+ *
+ * @param value The destinationPort to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestinationPort(int value) {
+
+ destinationPort_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Destination port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 destination_port = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDestinationPort() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ destinationPort_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sourceNetworkUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @return The sourceNetworkUri.
+ */
+ public java.lang.String getSourceNetworkUri() {
+ java.lang.Object ref = sourceNetworkUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceNetworkUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @return The bytes for sourceNetworkUri.
+ */
+ public com.google.protobuf.ByteString getSourceNetworkUriBytes() {
+ java.lang.Object ref = sourceNetworkUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceNetworkUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @param value The sourceNetworkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceNetworkUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceNetworkUri_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceNetworkUri() {
+ sourceNetworkUri_ = getDefaultInstance().getSourceNetworkUri();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @param value The bytes for sourceNetworkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceNetworkUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceNetworkUri_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object destinationNetworkUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @return The destinationNetworkUri.
+ */
+ public java.lang.String getDestinationNetworkUri() {
+ java.lang.Object ref = destinationNetworkUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ destinationNetworkUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @return The bytes for destinationNetworkUri.
+ */
+ public com.google.protobuf.ByteString getDestinationNetworkUriBytes() {
+ java.lang.Object ref = destinationNetworkUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ destinationNetworkUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @param value The destinationNetworkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestinationNetworkUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destinationNetworkUri_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDestinationNetworkUri() {
+ destinationNetworkUri_ = getDefaultInstance().getDestinationNetworkUri();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @param value The bytes for destinationNetworkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestinationNetworkUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ destinationNetworkUri_ = value;
+ bitField0_ |= 0x00000040;
+ 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.events.cloud.networkmanagement.v1.EndpointInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.EndpointInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.EndpointInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.EndpointInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.EndpointInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public EndpointInfo 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.events.cloud.networkmanagement.v1.EndpointInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointInfoOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointInfoOrBuilder.java
new file mode 100644
index 00000000..47267882
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointInfoOrBuilder.java
@@ -0,0 +1,176 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface EndpointInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.EndpointInfo)
+ 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();
+
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @return The destinationIp.
+ */
+ java.lang.String getDestinationIp();
+ /**
+ *
+ *
+ *
+ * Destination IP address.
+ *
+ *
+ * string destination_ip = 2;
+ *
+ * @return The bytes for destinationIp.
+ */
+ com.google.protobuf.ByteString getDestinationIpBytes();
+
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @return The protocol.
+ */
+ java.lang.String getProtocol();
+ /**
+ *
+ *
+ *
+ * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
+ *
+ *
+ * string protocol = 3;
+ *
+ * @return The bytes for protocol.
+ */
+ com.google.protobuf.ByteString getProtocolBytes();
+
+ /**
+ *
+ *
+ *
+ * Source port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 source_port = 4;
+ *
+ * @return The sourcePort.
+ */
+ int getSourcePort();
+
+ /**
+ *
+ *
+ *
+ * Destination port. Only valid when protocol is TCP or UDP.
+ *
+ *
+ * int32 destination_port = 5;
+ *
+ * @return The destinationPort.
+ */
+ int getDestinationPort();
+
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @return The sourceNetworkUri.
+ */
+ java.lang.String getSourceNetworkUri();
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet originates from.
+ *
+ *
+ * string source_network_uri = 6;
+ *
+ * @return The bytes for sourceNetworkUri.
+ */
+ com.google.protobuf.ByteString getSourceNetworkUriBytes();
+
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @return The destinationNetworkUri.
+ */
+ java.lang.String getDestinationNetworkUri();
+ /**
+ *
+ *
+ *
+ * URI of the network where this packet is sent to.
+ *
+ *
+ * string destination_network_uri = 7;
+ *
+ * @return The bytes for destinationNetworkUri.
+ */
+ com.google.protobuf.ByteString getDestinationNetworkUriBytes();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointOrBuilder.java
new file mode 100644
index 00000000..a8fb7cbe
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/EndpointOrBuilder.java
@@ -0,0 +1,374 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface EndpointOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.Endpoint)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * 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 ipAddress.
+ */
+ 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).
+ *
+ *
+ * string ip_address = 1;
+ *
+ * @return The bytes for ipAddress.
+ */
+ com.google.protobuf.ByteString getIpAddressBytes();
+
+ /**
+ *
+ *
+ *
+ * The IP protocol port of the endpoint.
+ * Only applicable when protocol is TCP or UDP.
+ *
+ *
+ * int32 port = 2;
+ *
+ * @return The port.
+ */
+ int getPort();
+
+ /**
+ *
+ *
+ *
+ * A Compute Engine instance URI.
+ *
+ *
+ * string instance = 3;
+ *
+ * @return The instance.
+ */
+ java.lang.String getInstance();
+ /**
+ *
+ *
+ *
+ * A Compute Engine instance URI.
+ *
+ *
+ * string instance = 3;
+ *
+ * @return The bytes for instance.
+ */
+ com.google.protobuf.ByteString getInstanceBytes();
+
+ /**
+ *
+ *
+ *
+ * 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.String getGkeMasterCluster();
+ /**
+ *
+ *
+ *
+ * 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.
+ */
+ com.google.protobuf.ByteString getGkeMasterClusterBytes();
+
+ /**
+ *
+ *
+ *
+ * A [Cloud SQL](https://cloud.google.com/sql) instance URI.
+ *
+ *
+ * string cloud_sql_instance = 8;
+ *
+ * @return The cloudSqlInstance.
+ */
+ java.lang.String getCloudSqlInstance();
+ /**
+ *
+ *
+ *
+ * A [Cloud SQL](https://cloud.google.com/sql) instance URI.
+ *
+ *
+ * string cloud_sql_instance = 8;
+ *
+ * @return The bytes for cloudSqlInstance.
+ */
+ com.google.protobuf.ByteString getCloudSqlInstanceBytes();
+
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ *
+ * @return The cloudFunction.
+ */
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint getCloudFunction();
+ /**
+ *
+ *
+ *
+ * A [Cloud Function](https://cloud.google.com/functions).
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
+ *
+ */
+ com.google.events.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.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ *
+ * @return The appEngineVersion.
+ */
+ com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
+ *
+ */
+ com.google.events.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.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ *
+ * @return The cloudRunRevision.
+ */
+ com.google.events.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.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
+ *
+ */
+ com.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder
+ getCloudRunRevisionOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * A Compute Engine network URI.
+ *
+ *
+ * string network = 4;
+ *
+ * @return The network.
+ */
+ java.lang.String getNetwork();
+ /**
+ *
+ *
+ *
+ * A Compute Engine network URI.
+ *
+ *
+ * string network = 4;
+ *
+ * @return The bytes for network.
+ */
+ com.google.protobuf.ByteString getNetworkBytes();
+
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return The enum numeric value on the wire for networkType.
+ */
+ int getNetworkTypeValue();
+ /**
+ *
+ *
+ *
+ * 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.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;
+ *
+ * @return The networkType.
+ */
+ com.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType getNetworkType();
+
+ /**
+ *
+ *
+ *
+ * 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.String getProjectId();
+ /**
+ *
+ *
+ *
+ * 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.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/FirewallInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/FirewallInfo.java
new file mode 100644
index 00000000..de082f26
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/FirewallInfo.java
@@ -0,0 +1,2653 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * For display only. Metadata associated with a VPC firewall rule, an implied
+ * VPC firewall rule, or a hierarchical firewall policy rule.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.FirewallInfo}
+ */
+public final class FirewallInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.FirewallInfo)
+ FirewallInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use FirewallInfo.newBuilder() to construct.
+ private FirewallInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private FirewallInfo() {
+ displayName_ = "";
+ uri_ = "";
+ direction_ = "";
+ action_ = "";
+ networkUri_ = "";
+ targetTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ targetServiceAccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ policy_ = "";
+ firewallRuleType_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new FirewallInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.class,
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ * Protobuf enum {@code google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType}
+ */
+ public enum FirewallRuleType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified type.
+ *
+ *
+ * FIREWALL_RULE_TYPE_UNSPECIFIED = 0;
+ */
+ FIREWALL_RULE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Hierarchical firewall policy rule. For details, see
+ * [Hierarchical firewall policies
+ * overview](https://cloud.google.com/vpc/docs/firewall-policies).
+ *
+ *
+ * HIERARCHICAL_FIREWALL_POLICY_RULE = 1;
+ */
+ HIERARCHICAL_FIREWALL_POLICY_RULE(1),
+ /**
+ *
+ *
+ *
+ * VPC firewall rule. For details, see
+ * [VPC firewall rules
+ * overview](https://cloud.google.com/vpc/docs/firewalls).
+ *
+ *
+ * VPC_FIREWALL_RULE = 2;
+ */
+ VPC_FIREWALL_RULE(2),
+ /**
+ *
+ *
+ *
+ * Implied VPC firewall rule. For details, see
+ * [Implied
+ * rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules).
+ *
+ *
+ * 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),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unspecified type.
+ *
+ *
+ * FIREWALL_RULE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int FIREWALL_RULE_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Hierarchical firewall policy rule. For details, see
+ * [Hierarchical firewall policies
+ * overview](https://cloud.google.com/vpc/docs/firewall-policies).
+ *
+ *
+ * HIERARCHICAL_FIREWALL_POLICY_RULE = 1;
+ */
+ public static final int HIERARCHICAL_FIREWALL_POLICY_RULE_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * VPC firewall rule. For details, see
+ * [VPC firewall rules
+ * overview](https://cloud.google.com/vpc/docs/firewalls).
+ *
+ *
+ * VPC_FIREWALL_RULE = 2;
+ */
+ public static final int VPC_FIREWALL_RULE_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Implied VPC firewall rule. For details, see
+ * [Implied
+ * rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules).
+ *
+ *
+ * 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;
+
+ 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 FirewallRuleType 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 FirewallRuleType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return FIREWALL_RULE_TYPE_UNSPECIFIED;
+ case 1:
+ return HIERARCHICAL_FIREWALL_POLICY_RULE;
+ case 2:
+ 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;
+ 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 FirewallRuleType findValueByNumber(int number) {
+ return FirewallRuleType.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.events.cloud.networkmanagement.v1.FirewallInfo.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final FirewallRuleType[] VALUES = values();
+
+ public static FirewallRuleType 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 FirewallRuleType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType)
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * 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_ = "";
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * 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 DIRECTION_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object direction_ = "";
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @return The direction.
+ */
+ @java.lang.Override
+ public java.lang.String getDirection() {
+ java.lang.Object ref = direction_;
+ 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();
+ direction_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @return The bytes for direction.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDirectionBytes() {
+ java.lang.Object ref = direction_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ direction_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object action_ = "";
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @return The action.
+ */
+ @java.lang.Override
+ public java.lang.String getAction() {
+ java.lang.Object ref = action_;
+ 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();
+ action_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @return The bytes for action.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getActionBytes() {
+ java.lang.Object ref = action_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ action_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PRIORITY_FIELD_NUMBER = 5;
+ private int priority_ = 0;
+ /**
+ *
+ *
+ *
+ * The priority of the firewall rule.
+ *
+ *
+ * int32 priority = 5;
+ *
+ * @return The priority.
+ */
+ @java.lang.Override
+ public int getPriority() {
+ return priority_;
+ }
+
+ public static final int NETWORK_URI_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object networkUri_ = "";
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @return The networkUri.
+ */
+ @java.lang.Override
+ public java.lang.String getNetworkUri() {
+ java.lang.Object ref = networkUri_;
+ 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();
+ networkUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @return The bytes for networkUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNetworkUriBytes() {
+ java.lang.Object ref = networkUri_;
+ if (ref instanceof java.lang.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 static final int TARGET_TAGS_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringList targetTags_;
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @return A list containing the targetTags.
+ */
+ public com.google.protobuf.ProtocolStringList getTargetTagsList() {
+ return targetTags_;
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @return The count of targetTags.
+ */
+ public int getTargetTagsCount() {
+ return targetTags_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The targetTags at the given index.
+ */
+ public java.lang.String getTargetTags(int index) {
+ return targetTags_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the targetTags at the given index.
+ */
+ public com.google.protobuf.ByteString getTargetTagsBytes(int index) {
+ return targetTags_.getByteString(index);
+ }
+
+ public static final int TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringList targetServiceAccounts_;
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @return A list containing the targetServiceAccounts.
+ */
+ public com.google.protobuf.ProtocolStringList getTargetServiceAccountsList() {
+ return targetServiceAccounts_;
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @return The count of targetServiceAccounts.
+ */
+ public int getTargetServiceAccountsCount() {
+ return targetServiceAccounts_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param index The index of the element to return.
+ * @return The targetServiceAccounts at the given index.
+ */
+ public java.lang.String getTargetServiceAccounts(int index) {
+ return targetServiceAccounts_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the targetServiceAccounts at the given index.
+ */
+ public com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index) {
+ return targetServiceAccounts_.getByteString(index);
+ }
+
+ public static final int POLICY_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object policy_ = "";
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @return The policy.
+ */
+ @java.lang.Override
+ public java.lang.String getPolicy() {
+ java.lang.Object ref = policy_;
+ 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();
+ policy_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @return The bytes for policy.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPolicyBytes() {
+ java.lang.Object ref = policy_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ policy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FIREWALL_RULE_TYPE_FIELD_NUMBER = 10;
+ private int firewallRuleType_ = 0;
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @return The enum numeric value on the wire for firewallRuleType.
+ */
+ @java.lang.Override
+ public int getFirewallRuleTypeValue() {
+ return firewallRuleType_;
+ }
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @return The firewallRuleType.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType
+ getFirewallRuleType() {
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType result =
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType.forNumber(
+ firewallRuleType_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType.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(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(direction_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, direction_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, action_);
+ }
+ if (priority_ != 0) {
+ output.writeInt32(5, priority_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, networkUri_);
+ }
+ for (int i = 0; i < targetTags_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetTags_.getRaw(i));
+ }
+ for (int i = 0; i < targetServiceAccounts_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(
+ output, 8, targetServiceAccounts_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policy_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, policy_);
+ }
+ if (firewallRuleType_
+ != com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType
+ .FIREWALL_RULE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(10, firewallRuleType_);
+ }
+ 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(direction_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, direction_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, action_);
+ }
+ if (priority_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, priority_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, networkUri_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < targetTags_.size(); i++) {
+ dataSize += computeStringSizeNoTag(targetTags_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getTargetTagsList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < targetServiceAccounts_.size(); i++) {
+ dataSize += computeStringSizeNoTag(targetServiceAccounts_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getTargetServiceAccountsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policy_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, policy_);
+ }
+ if (firewallRuleType_
+ != com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType
+ .FIREWALL_RULE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, firewallRuleType_);
+ }
+ 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.events.cloud.networkmanagement.v1.FirewallInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo other =
+ (com.google.events.cloud.networkmanagement.v1.FirewallInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getDirection().equals(other.getDirection())) return false;
+ if (!getAction().equals(other.getAction())) return false;
+ if (getPriority() != other.getPriority()) return false;
+ if (!getNetworkUri().equals(other.getNetworkUri())) return false;
+ if (!getTargetTagsList().equals(other.getTargetTagsList())) return false;
+ if (!getTargetServiceAccountsList().equals(other.getTargetServiceAccountsList())) return false;
+ if (!getPolicy().equals(other.getPolicy())) return false;
+ if (firewallRuleType_ != other.firewallRuleType_) 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) + DIRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDirection().hashCode();
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getAction().hashCode();
+ hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
+ hash = (53 * hash) + getPriority();
+ hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNetworkUri().hashCode();
+ if (getTargetTagsCount() > 0) {
+ hash = (37 * hash) + TARGET_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetTagsList().hashCode();
+ }
+ if (getTargetServiceAccountsCount() > 0) {
+ hash = (37 * hash) + TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetServiceAccountsList().hashCode();
+ }
+ hash = (37 * hash) + POLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getPolicy().hashCode();
+ hash = (37 * hash) + FIREWALL_RULE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + firewallRuleType_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo 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.events.cloud.networkmanagement.v1.FirewallInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo 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.events.cloud.networkmanagement.v1.FirewallInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo 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.events.cloud.networkmanagement.v1.FirewallInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo 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.events.cloud.networkmanagement.v1.FirewallInfo 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 firewall rule, an implied
+ * VPC firewall rule, or a hierarchical firewall policy rule.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.FirewallInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.FirewallInfo)
+ com.google.events.cloud.networkmanagement.v1.FirewallInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.class,
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.FirewallInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ displayName_ = "";
+ uri_ = "";
+ direction_ = "";
+ action_ = "";
+ priority_ = 0;
+ networkUri_ = "";
+ targetTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ targetServiceAccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ policy_ = "";
+ firewallRuleType_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_FirewallInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.FirewallInfo getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.FirewallInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.FirewallInfo build() {
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.FirewallInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo result =
+ new com.google.events.cloud.networkmanagement.v1.FirewallInfo(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo result) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ targetTags_ = targetTags_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.targetTags_ = targetTags_;
+ if (((bitField0_ & 0x00000080) != 0)) {
+ targetServiceAccounts_ = targetServiceAccounts_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ }
+ result.targetServiceAccounts_ = targetServiceAccounts_;
+ }
+
+ private void buildPartial0(com.google.events.cloud.networkmanagement.v1.FirewallInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.uri_ = uri_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.direction_ = direction_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.action_ = action_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.priority_ = priority_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.networkUri_ = networkUri_;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.policy_ = policy_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.firewallRuleType_ = firewallRuleType_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.FirewallInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.FirewallInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.FirewallInfo other) {
+ if (other == com.google.events.cloud.networkmanagement.v1.FirewallInfo.getDefaultInstance())
+ return this;
+ if (!other.getDisplayName().isEmpty()) {
+ displayName_ = other.displayName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getDirection().isEmpty()) {
+ direction_ = other.direction_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getAction().isEmpty()) {
+ action_ = other.action_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (other.getPriority() != 0) {
+ setPriority(other.getPriority());
+ }
+ if (!other.getNetworkUri().isEmpty()) {
+ networkUri_ = other.networkUri_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (!other.targetTags_.isEmpty()) {
+ if (targetTags_.isEmpty()) {
+ targetTags_ = other.targetTags_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensureTargetTagsIsMutable();
+ targetTags_.addAll(other.targetTags_);
+ }
+ onChanged();
+ }
+ if (!other.targetServiceAccounts_.isEmpty()) {
+ if (targetServiceAccounts_.isEmpty()) {
+ targetServiceAccounts_ = other.targetServiceAccounts_;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ } else {
+ ensureTargetServiceAccountsIsMutable();
+ targetServiceAccounts_.addAll(other.targetServiceAccounts_);
+ }
+ onChanged();
+ }
+ if (!other.getPolicy().isEmpty()) {
+ policy_ = other.policy_;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ if (other.firewallRuleType_ != 0) {
+ setFirewallRuleTypeValue(other.getFirewallRuleTypeValue());
+ }
+ 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_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ direction_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34:
+ {
+ action_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 40:
+ {
+ priority_ = input.readInt32();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 50:
+ {
+ networkUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureTargetTagsIsMutable();
+ targetTags_.add(s);
+ break;
+ } // case 58
+ case 66:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureTargetServiceAccountsIsMutable();
+ targetServiceAccounts_.add(s);
+ break;
+ } // case 66
+ case 74:
+ {
+ policy_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 80:
+ {
+ firewallRuleType_ = input.readEnum();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 80
+ 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 displayName_ = "";
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * 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;
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * 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_ = "";
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * 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;
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * 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 direction_ = "";
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @return The direction.
+ */
+ public java.lang.String getDirection() {
+ java.lang.Object ref = direction_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ direction_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @return The bytes for direction.
+ */
+ public com.google.protobuf.ByteString getDirectionBytes() {
+ java.lang.Object ref = direction_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ direction_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @param value The direction to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDirection(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ direction_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDirection() {
+ direction_ = getDefaultInstance().getDirection();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @param value The bytes for direction to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDirectionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ direction_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object action_ = "";
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @return The action.
+ */
+ public java.lang.String getAction() {
+ java.lang.Object ref = action_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ action_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @return The bytes for action.
+ */
+ public com.google.protobuf.ByteString getActionBytes() {
+ java.lang.Object ref = action_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ action_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @param value The action to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAction(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAction() {
+ action_ = getDefaultInstance().getAction();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @param value The bytes for action to set.
+ * @return This builder for chaining.
+ */
+ public Builder setActionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ action_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private int priority_;
+ /**
+ *
+ *
+ *
+ * The priority of the firewall rule.
+ *
+ *
+ * int32 priority = 5;
+ *
+ * @return The priority.
+ */
+ @java.lang.Override
+ public int getPriority() {
+ return priority_;
+ }
+ /**
+ *
+ *
+ *
+ * The priority of the firewall rule.
+ *
+ *
+ * int32 priority = 5;
+ *
+ * @param value The priority to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriority(int value) {
+
+ priority_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The priority of the firewall rule.
+ *
+ *
+ * int32 priority = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPriority() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ priority_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object networkUri_ = "";
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @return The networkUri.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @param value The networkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ networkUri_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNetworkUri() {
+ networkUri_ = getDefaultInstance().getNetworkUri();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @param value The bytes for networkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ networkUri_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList targetTags_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureTargetTagsIsMutable() {
+ if (!((bitField0_ & 0x00000040) != 0)) {
+ targetTags_ = new com.google.protobuf.LazyStringArrayList(targetTags_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @return A list containing the targetTags.
+ */
+ public com.google.protobuf.ProtocolStringList getTargetTagsList() {
+ return targetTags_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @return The count of targetTags.
+ */
+ public int getTargetTagsCount() {
+ return targetTags_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The targetTags at the given index.
+ */
+ public java.lang.String getTargetTags(int index) {
+ return targetTags_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the targetTags at the given index.
+ */
+ public com.google.protobuf.ByteString getTargetTagsBytes(int index) {
+ return targetTags_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param index The index to set the value at.
+ * @param value The targetTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetTags(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTargetTagsIsMutable();
+ targetTags_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param value The targetTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTargetTags(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTargetTagsIsMutable();
+ targetTags_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param values The targetTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllTargetTags(java.lang.Iterable values) {
+ ensureTargetTagsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetTags_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTargetTags() {
+ targetTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param value The bytes of the targetTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTargetTagsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureTargetTagsIsMutable();
+ targetTags_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList targetServiceAccounts_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureTargetServiceAccountsIsMutable() {
+ if (!((bitField0_ & 0x00000080) != 0)) {
+ targetServiceAccounts_ =
+ new com.google.protobuf.LazyStringArrayList(targetServiceAccounts_);
+ bitField0_ |= 0x00000080;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @return A list containing the targetServiceAccounts.
+ */
+ public com.google.protobuf.ProtocolStringList getTargetServiceAccountsList() {
+ return targetServiceAccounts_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @return The count of targetServiceAccounts.
+ */
+ public int getTargetServiceAccountsCount() {
+ return targetServiceAccounts_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param index The index of the element to return.
+ * @return The targetServiceAccounts at the given index.
+ */
+ public java.lang.String getTargetServiceAccounts(int index) {
+ return targetServiceAccounts_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the targetServiceAccounts at the given index.
+ */
+ public com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index) {
+ return targetServiceAccounts_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param index The index to set the value at.
+ * @param value The targetServiceAccounts to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetServiceAccounts(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTargetServiceAccountsIsMutable();
+ targetServiceAccounts_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param value The targetServiceAccounts to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTargetServiceAccounts(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTargetServiceAccountsIsMutable();
+ targetServiceAccounts_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param values The targetServiceAccounts to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllTargetServiceAccounts(java.lang.Iterable values) {
+ ensureTargetServiceAccountsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetServiceAccounts_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTargetServiceAccounts() {
+ targetServiceAccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param value The bytes of the targetServiceAccounts to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTargetServiceAccountsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureTargetServiceAccountsIsMutable();
+ targetServiceAccounts_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object policy_ = "";
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @return The policy.
+ */
+ public java.lang.String getPolicy() {
+ java.lang.Object ref = policy_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ policy_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @return The bytes for policy.
+ */
+ public com.google.protobuf.ByteString getPolicyBytes() {
+ java.lang.Object ref = policy_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ policy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @param value The policy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPolicy(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ policy_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPolicy() {
+ policy_ = getDefaultInstance().getPolicy();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @param value The bytes for policy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPolicyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ policy_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private int firewallRuleType_ = 0;
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @return The enum numeric value on the wire for firewallRuleType.
+ */
+ @java.lang.Override
+ public int getFirewallRuleTypeValue() {
+ return firewallRuleType_;
+ }
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @param value The enum numeric value on the wire for firewallRuleType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFirewallRuleTypeValue(int value) {
+ firewallRuleType_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @return The firewallRuleType.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType
+ getFirewallRuleType() {
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType result =
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType.forNumber(
+ firewallRuleType_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @param value The firewallRuleType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFirewallRuleType(
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
+ firewallRuleType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFirewallRuleType() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ firewallRuleType_ = 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.events.cloud.networkmanagement.v1.FirewallInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.FirewallInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.FirewallInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.FirewallInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.FirewallInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public FirewallInfo 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.events.cloud.networkmanagement.v1.FirewallInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java
new file mode 100644
index 00000000..5ac2f745
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java
@@ -0,0 +1,331 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface FirewallInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.FirewallInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ *
+ * The display name of the VPC firewall rule. This field is not applicable
+ * to hierarchical firewall policy rules.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ *
+ * The URI of the VPC firewall rule. This field is not applicable to
+ * implied firewall rules or hierarchical firewall policy rules.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @return The direction.
+ */
+ java.lang.String getDirection();
+ /**
+ *
+ *
+ *
+ * Possible values: INGRESS, EGRESS
+ *
+ *
+ * string direction = 3;
+ *
+ * @return The bytes for direction.
+ */
+ com.google.protobuf.ByteString getDirectionBytes();
+
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @return The action.
+ */
+ java.lang.String getAction();
+ /**
+ *
+ *
+ *
+ * Possible values: ALLOW, DENY
+ *
+ *
+ * string action = 4;
+ *
+ * @return The bytes for action.
+ */
+ com.google.protobuf.ByteString getActionBytes();
+
+ /**
+ *
+ *
+ *
+ * The priority of the firewall rule.
+ *
+ *
+ * int32 priority = 5;
+ *
+ * @return The priority.
+ */
+ int getPriority();
+
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @return The networkUri.
+ */
+ java.lang.String getNetworkUri();
+ /**
+ *
+ *
+ *
+ * The URI of the VPC network that the firewall rule is associated with.
+ * This field is not applicable to hierarchical firewall policy rules.
+ *
+ *
+ * string network_uri = 6;
+ *
+ * @return The bytes for networkUri.
+ */
+ com.google.protobuf.ByteString getNetworkUriBytes();
+
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @return A list containing the targetTags.
+ */
+ java.util.List getTargetTagsList();
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @return The count of targetTags.
+ */
+ int getTargetTagsCount();
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The targetTags at the given index.
+ */
+ java.lang.String getTargetTags(int index);
+ /**
+ *
+ *
+ *
+ * The target tags defined by the VPC firewall rule. This field is not
+ * applicable to hierarchical firewall policy rules.
+ *
+ *
+ * repeated string target_tags = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the targetTags at the given index.
+ */
+ com.google.protobuf.ByteString getTargetTagsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @return A list containing the targetServiceAccounts.
+ */
+ java.util.List getTargetServiceAccountsList();
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @return The count of targetServiceAccounts.
+ */
+ int getTargetServiceAccountsCount();
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param index The index of the element to return.
+ * @return The targetServiceAccounts at the given index.
+ */
+ java.lang.String getTargetServiceAccounts(int index);
+ /**
+ *
+ *
+ *
+ * The target service accounts specified by the firewall rule.
+ *
+ *
+ * repeated string target_service_accounts = 8;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the targetServiceAccounts at the given index.
+ */
+ com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @return The policy.
+ */
+ java.lang.String getPolicy();
+ /**
+ *
+ *
+ *
+ * The hierarchical firewall policy that this rule is associated with.
+ * This field is not applicable to VPC firewall rules.
+ *
+ *
+ * string policy = 9;
+ *
+ * @return The bytes for policy.
+ */
+ com.google.protobuf.ByteString getPolicyBytes();
+
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @return The enum numeric value on the wire for firewallRuleType.
+ */
+ int getFirewallRuleTypeValue();
+ /**
+ *
+ *
+ *
+ * The firewall rule's type.
+ *
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
+ *
+ *
+ * @return The firewallRuleType.
+ */
+ com.google.events.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType getFirewallRuleType();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardInfo.java
new file mode 100644
index 00000000..376f0267
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardInfo.java
@@ -0,0 +1,1056 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * Details of the final state "forward" and associated resource.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.ForwardInfo}
+ */
+public final class ForwardInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.ForwardInfo)
+ ForwardInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ForwardInfo.newBuilder() to construct.
+ private ForwardInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ForwardInfo() {
+ target_ = 0;
+ resourceUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ForwardInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.class,
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Forward target types.
+ *
+ *
+ * Protobuf enum {@code google.events.cloud.networkmanagement.v1.ForwardInfo.Target}
+ */
+ public enum Target implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Target not specified.
+ *
+ *
+ * TARGET_UNSPECIFIED = 0;
+ */
+ TARGET_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Forwarded to a VPC peering network.
+ *
+ *
+ * PEERING_VPC = 1;
+ */
+ PEERING_VPC(1),
+ /**
+ *
+ *
+ *
+ * Forwarded to a Cloud VPN gateway.
+ *
+ *
+ * VPN_GATEWAY = 2;
+ */
+ VPN_GATEWAY(2),
+ /**
+ *
+ *
+ *
+ * Forwarded to a Cloud Interconnect connection.
+ *
+ *
+ * INTERCONNECT = 3;
+ */
+ INTERCONNECT(3),
+ /**
+ *
+ *
+ *
+ * Forwarded to a Google Kubernetes Engine Container cluster master.
+ *
+ *
+ * GKE_MASTER = 4;
+ */
+ GKE_MASTER(4),
+ /**
+ *
+ *
+ *
+ * Forwarded to the next hop of a custom route imported from a peering VPC.
+ *
+ *
+ * IMPORTED_CUSTOM_ROUTE_NEXT_HOP = 5;
+ */
+ IMPORTED_CUSTOM_ROUTE_NEXT_HOP(5),
+ /**
+ *
+ *
+ *
+ * Forwarded to a Cloud SQL instance.
+ *
+ *
+ * CLOUD_SQL_INSTANCE = 6;
+ */
+ CLOUD_SQL_INSTANCE(6),
+ /**
+ *
+ *
+ *
+ * Forwarded to a VPC network in another project.
+ *
+ *
+ * ANOTHER_PROJECT = 7;
+ */
+ ANOTHER_PROJECT(7),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Target not specified.
+ *
+ *
+ * TARGET_UNSPECIFIED = 0;
+ */
+ public static final int TARGET_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Forwarded to a VPC peering network.
+ *
+ *
+ * PEERING_VPC = 1;
+ */
+ public static final int PEERING_VPC_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Forwarded to a Cloud VPN gateway.
+ *
+ *
+ * VPN_GATEWAY = 2;
+ */
+ public static final int VPN_GATEWAY_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Forwarded to a Cloud Interconnect connection.
+ *
+ *
+ * INTERCONNECT = 3;
+ */
+ public static final int INTERCONNECT_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Forwarded to a Google Kubernetes Engine Container cluster master.
+ *
+ *
+ * GKE_MASTER = 4;
+ */
+ public static final int GKE_MASTER_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * Forwarded to the next hop of a custom route imported from a peering VPC.
+ *
+ *
+ * IMPORTED_CUSTOM_ROUTE_NEXT_HOP = 5;
+ */
+ public static final int IMPORTED_CUSTOM_ROUTE_NEXT_HOP_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * Forwarded to a Cloud SQL instance.
+ *
+ *
+ * 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;
+
+ 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 Target 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 Target forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TARGET_UNSPECIFIED;
+ case 1:
+ return PEERING_VPC;
+ case 2:
+ return VPN_GATEWAY;
+ case 3:
+ return INTERCONNECT;
+ case 4:
+ return GKE_MASTER;
+ case 5:
+ return IMPORTED_CUSTOM_ROUTE_NEXT_HOP;
+ case 6:
+ return CLOUD_SQL_INSTANCE;
+ case 7:
+ return ANOTHER_PROJECT;
+ 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 Target findValueByNumber(int number) {
+ return Target.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.events.cloud.networkmanagement.v1.ForwardInfo.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final Target[] VALUES = values();
+
+ public static Target 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 Target(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.events.cloud.networkmanagement.v1.ForwardInfo.Target)
+ }
+
+ public static final int TARGET_FIELD_NUMBER = 1;
+ private int target_ = 0;
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @return The enum numeric value on the wire for target.
+ */
+ @java.lang.Override
+ public int getTargetValue() {
+ return target_;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @return The target.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target getTarget() {
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target result =
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target.forNumber(target_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int RESOURCE_URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object resourceUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ @java.lang.Override
+ public java.lang.String getResourceUri() {
+ java.lang.Object ref = resourceUri_;
+ 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();
+ resourceUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResourceUriBytes() {
+ java.lang.Object ref = resourceUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceUri_ = 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 (target_
+ != com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target.TARGET_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, target_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (target_
+ != com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target.TARGET_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, target_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceUri_);
+ }
+ 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.events.cloud.networkmanagement.v1.ForwardInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo other =
+ (com.google.events.cloud.networkmanagement.v1.ForwardInfo) obj;
+
+ if (target_ != other.target_) return false;
+ if (!getResourceUri().equals(other.getResourceUri())) 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) + TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + target_;
+ hash = (37 * hash) + RESOURCE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo 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.events.cloud.networkmanagement.v1.ForwardInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo 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.events.cloud.networkmanagement.v1.ForwardInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo 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.events.cloud.networkmanagement.v1.ForwardInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo 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.events.cloud.networkmanagement.v1.ForwardInfo 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;
+ }
+ /**
+ *
+ *
+ *
+ * Details of the final state "forward" and associated resource.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.ForwardInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.ForwardInfo)
+ com.google.events.cloud.networkmanagement.v1.ForwardInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.class,
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.ForwardInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ target_ = 0;
+ resourceUri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ForwardInfo getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.ForwardInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ForwardInfo build() {
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ForwardInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo result =
+ new com.google.events.cloud.networkmanagement.v1.ForwardInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.events.cloud.networkmanagement.v1.ForwardInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.target_ = target_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.resourceUri_ = resourceUri_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.ForwardInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.ForwardInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.ForwardInfo other) {
+ if (other == com.google.events.cloud.networkmanagement.v1.ForwardInfo.getDefaultInstance())
+ return this;
+ if (other.target_ != 0) {
+ setTargetValue(other.getTargetValue());
+ }
+ if (!other.getResourceUri().isEmpty()) {
+ resourceUri_ = other.resourceUri_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ target_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18:
+ {
+ resourceUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int target_ = 0;
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @return The enum numeric value on the wire for target.
+ */
+ @java.lang.Override
+ public int getTargetValue() {
+ return target_;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @param value The enum numeric value on the wire for target to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetValue(int value) {
+ target_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @return The target.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target getTarget() {
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target result =
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target.forNumber(target_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @param value The target to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTarget(
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ target_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTarget() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ target_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resourceUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ public java.lang.String getResourceUri() {
+ java.lang.Object ref = resourceUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ public com.google.protobuf.ByteString getResourceUriBytes() {
+ java.lang.Object ref = resourceUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @param value The resourceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resourceUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceUri() {
+ resourceUri_ = getDefaultInstance().getResourceUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @param value The bytes for resourceUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ resourceUri_ = value;
+ bitField0_ |= 0x00000002;
+ 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.events.cloud.networkmanagement.v1.ForwardInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.ForwardInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.ForwardInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.ForwardInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ForwardInfo 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.events.cloud.networkmanagement.v1.ForwardInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardInfoOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardInfoOrBuilder.java
new file mode 100644
index 00000000..508aae81
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardInfoOrBuilder.java
@@ -0,0 +1,75 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface ForwardInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.ForwardInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @return The enum numeric value on the wire for target.
+ */
+ int getTargetValue();
+ /**
+ *
+ *
+ *
+ * Target type where this packet is forwarded to.
+ *
+ *
+ * .google.events.cloud.networkmanagement.v1.ForwardInfo.Target target = 1;
+ *
+ * @return The target.
+ */
+ com.google.events.cloud.networkmanagement.v1.ForwardInfo.Target getTarget();
+
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The resourceUri.
+ */
+ java.lang.String getResourceUri();
+ /**
+ *
+ *
+ *
+ * URI of the resource that the packet is forwarded to.
+ *
+ *
+ * string resource_uri = 2;
+ *
+ * @return The bytes for resourceUri.
+ */
+ com.google.protobuf.ByteString getResourceUriBytes();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardingRuleInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardingRuleInfo.java
new file mode 100644
index 00000000..161bfdbc
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardingRuleInfo.java
@@ -0,0 +1,1729 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * For display only. Metadata associated with a Compute Engine forwarding rule.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.ForwardingRuleInfo}
+ */
+public final class ForwardingRuleInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.ForwardingRuleInfo)
+ ForwardingRuleInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ForwardingRuleInfo.newBuilder() to construct.
+ private ForwardingRuleInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ForwardingRuleInfo() {
+ displayName_ = "";
+ uri_ = "";
+ matchedProtocol_ = "";
+ matchedPortRange_ = "";
+ vip_ = "";
+ target_ = "";
+ networkUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ForwardingRuleInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo.class,
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo.Builder.class);
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Name of a Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * 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 MATCHED_PROTOCOL_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object matchedProtocol_ = "";
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @return The matchedProtocol.
+ */
+ @java.lang.Override
+ public java.lang.String getMatchedProtocol() {
+ java.lang.Object ref = matchedProtocol_;
+ 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();
+ matchedProtocol_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @return The bytes for matchedProtocol.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMatchedProtocolBytes() {
+ java.lang.Object ref = matchedProtocol_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ matchedProtocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MATCHED_PORT_RANGE_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object matchedPortRange_ = "";
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @return The matchedPortRange.
+ */
+ @java.lang.Override
+ public java.lang.String getMatchedPortRange() {
+ java.lang.Object ref = matchedPortRange_;
+ 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();
+ matchedPortRange_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @return The bytes for matchedPortRange.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMatchedPortRangeBytes() {
+ java.lang.Object ref = matchedPortRange_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ matchedPortRange_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VIP_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object vip_ = "";
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @return The vip.
+ */
+ @java.lang.Override
+ public java.lang.String getVip() {
+ java.lang.Object ref = vip_;
+ 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();
+ vip_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @return The bytes for vip.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVipBytes() {
+ java.lang.Object ref = vip_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ vip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TARGET_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object target_ = "";
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @return The target.
+ */
+ @java.lang.Override
+ public java.lang.String getTarget() {
+ java.lang.Object ref = target_;
+ 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();
+ target_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @return The bytes for target.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTargetBytes() {
+ java.lang.Object ref = target_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ target_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NETWORK_URI_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object networkUri_ = "";
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @return The networkUri.
+ */
+ @java.lang.Override
+ public java.lang.String getNetworkUri() {
+ java.lang.Object ref = networkUri_;
+ 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();
+ networkUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @return The bytes for networkUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNetworkUriBytes() {
+ java.lang.Object ref = networkUri_;
+ if (ref instanceof java.lang.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;
+ }
+ }
+
+ 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(matchedProtocol_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, matchedProtocol_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vip_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, vip_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, target_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedPortRange_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, matchedPortRange_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, networkUri_);
+ }
+ 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(matchedProtocol_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, matchedProtocol_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vip_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, vip_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedPortRange_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, matchedPortRange_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, networkUri_);
+ }
+ 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.events.cloud.networkmanagement.v1.ForwardingRuleInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo other =
+ (com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getMatchedProtocol().equals(other.getMatchedProtocol())) return false;
+ if (!getMatchedPortRange().equals(other.getMatchedPortRange())) return false;
+ if (!getVip().equals(other.getVip())) return false;
+ if (!getTarget().equals(other.getTarget())) return false;
+ if (!getNetworkUri().equals(other.getNetworkUri())) 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) + MATCHED_PROTOCOL_FIELD_NUMBER;
+ hash = (53 * hash) + getMatchedProtocol().hashCode();
+ hash = (37 * hash) + MATCHED_PORT_RANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMatchedPortRange().hashCode();
+ hash = (37 * hash) + VIP_FIELD_NUMBER;
+ hash = (53 * hash) + getVip().hashCode();
+ hash = (37 * hash) + TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + getTarget().hashCode();
+ hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNetworkUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo 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.events.cloud.networkmanagement.v1.ForwardingRuleInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo 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.events.cloud.networkmanagement.v1.ForwardingRuleInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo 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.events.cloud.networkmanagement.v1.ForwardingRuleInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo 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.events.cloud.networkmanagement.v1.ForwardingRuleInfo 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 forwarding rule.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.ForwardingRuleInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.ForwardingRuleInfo)
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo.class,
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ displayName_ = "";
+ uri_ = "";
+ matchedProtocol_ = "";
+ matchedPortRange_ = "";
+ vip_ = "";
+ target_ = "";
+ networkUri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_ForwardingRuleInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo
+ getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo build() {
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo result =
+ new com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.uri_ = uri_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.matchedProtocol_ = matchedProtocol_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.matchedPortRange_ = matchedPortRange_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.vip_ = vip_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.target_ = target_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.networkUri_ = networkUri_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.ForwardingRuleInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo other) {
+ if (other
+ == com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo.getDefaultInstance())
+ return this;
+ if (!other.getDisplayName().isEmpty()) {
+ displayName_ = other.displayName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getMatchedProtocol().isEmpty()) {
+ matchedProtocol_ = other.matchedProtocol_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getMatchedPortRange().isEmpty()) {
+ matchedPortRange_ = other.matchedPortRange_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getVip().isEmpty()) {
+ vip_ = other.vip_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (!other.getTarget().isEmpty()) {
+ target_ = other.target_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (!other.getNetworkUri().isEmpty()) {
+ networkUri_ = other.networkUri_;
+ bitField0_ |= 0x00000040;
+ 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_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ matchedProtocol_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34:
+ {
+ vip_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 34
+ case 42:
+ {
+ target_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 42
+ case 50:
+ {
+ matchedPortRange_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 50
+ case 58:
+ {
+ networkUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Name of a Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Name of a Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * 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 Compute Engine forwarding rule.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine forwarding rule.
+ *
+ *
+ * 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 matchedProtocol_ = "";
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @return The matchedProtocol.
+ */
+ public java.lang.String getMatchedProtocol() {
+ java.lang.Object ref = matchedProtocol_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ matchedProtocol_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @return The bytes for matchedProtocol.
+ */
+ public com.google.protobuf.ByteString getMatchedProtocolBytes() {
+ java.lang.Object ref = matchedProtocol_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ matchedProtocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @param value The matchedProtocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMatchedProtocol(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ matchedProtocol_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMatchedProtocol() {
+ matchedProtocol_ = getDefaultInstance().getMatchedProtocol();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @param value The bytes for matchedProtocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMatchedProtocolBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ matchedProtocol_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object matchedPortRange_ = "";
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @return The matchedPortRange.
+ */
+ public java.lang.String getMatchedPortRange() {
+ java.lang.Object ref = matchedPortRange_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ matchedPortRange_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @return The bytes for matchedPortRange.
+ */
+ public com.google.protobuf.ByteString getMatchedPortRangeBytes() {
+ java.lang.Object ref = matchedPortRange_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ matchedPortRange_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @param value The matchedPortRange to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMatchedPortRange(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ matchedPortRange_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMatchedPortRange() {
+ matchedPortRange_ = getDefaultInstance().getMatchedPortRange();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @param value The bytes for matchedPortRange to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMatchedPortRangeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ matchedPortRange_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object vip_ = "";
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @return The vip.
+ */
+ public java.lang.String getVip() {
+ java.lang.Object ref = vip_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ vip_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @return The bytes for vip.
+ */
+ public com.google.protobuf.ByteString getVipBytes() {
+ java.lang.Object ref = vip_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ vip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @param value The vip to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVip(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ vip_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVip() {
+ vip_ = getDefaultInstance().getVip();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @param value The bytes for vip to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVipBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ vip_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object target_ = "";
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @return The target.
+ */
+ public java.lang.String getTarget() {
+ java.lang.Object ref = target_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ target_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @return The bytes for target.
+ */
+ public com.google.protobuf.ByteString getTargetBytes() {
+ java.lang.Object ref = target_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ target_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @param value The target to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTarget(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ target_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTarget() {
+ target_ = getDefaultInstance().getTarget();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @param value The bytes for target to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ target_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object networkUri_ = "";
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @return The networkUri.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @param value The networkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ networkUri_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNetworkUri() {
+ networkUri_ = getDefaultInstance().getNetworkUri();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @param value The bytes for networkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ networkUri_ = value;
+ bitField0_ |= 0x00000040;
+ 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.events.cloud.networkmanagement.v1.ForwardingRuleInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.ForwardingRuleInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.ForwardingRuleInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ForwardingRuleInfo 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.events.cloud.networkmanagement.v1.ForwardingRuleInfo
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardingRuleInfoOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardingRuleInfoOrBuilder.java
new file mode 100644
index 00000000..6523c2f4
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/ForwardingRuleInfoOrBuilder.java
@@ -0,0 +1,200 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface ForwardingRuleInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.ForwardingRuleInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Name of a Compute Engine forwarding rule.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ *
+ * Name of a Compute Engine forwarding rule.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine forwarding rule.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine forwarding rule.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @return The matchedProtocol.
+ */
+ java.lang.String getMatchedProtocol();
+ /**
+ *
+ *
+ *
+ * Protocol defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_protocol = 3;
+ *
+ * @return The bytes for matchedProtocol.
+ */
+ com.google.protobuf.ByteString getMatchedProtocolBytes();
+
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @return The matchedPortRange.
+ */
+ java.lang.String getMatchedPortRange();
+ /**
+ *
+ *
+ *
+ * Port range defined in the forwarding rule that matches the test.
+ *
+ *
+ * string matched_port_range = 6;
+ *
+ * @return The bytes for matchedPortRange.
+ */
+ com.google.protobuf.ByteString getMatchedPortRangeBytes();
+
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @return The vip.
+ */
+ java.lang.String getVip();
+ /**
+ *
+ *
+ *
+ * VIP of the forwarding rule.
+ *
+ *
+ * string vip = 4;
+ *
+ * @return The bytes for vip.
+ */
+ com.google.protobuf.ByteString getVipBytes();
+
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @return The target.
+ */
+ java.lang.String getTarget();
+ /**
+ *
+ *
+ *
+ * Target type of the forwarding rule.
+ *
+ *
+ * string target = 5;
+ *
+ * @return The bytes for target.
+ */
+ com.google.protobuf.ByteString getTargetBytes();
+
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @return The networkUri.
+ */
+ java.lang.String getNetworkUri();
+ /**
+ *
+ *
+ *
+ * Network URI. Only valid for Internal Load Balancer.
+ *
+ *
+ * string network_uri = 7;
+ *
+ * @return The bytes for networkUri.
+ */
+ com.google.protobuf.ByteString getNetworkUriBytes();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GKEMasterInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GKEMasterInfo.java
new file mode 100644
index 00000000..deba1403
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GKEMasterInfo.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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * For display only. Metadata associated with a Google Kubernetes Engine (GKE)
+ * cluster master.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.GKEMasterInfo}
+ */
+public final class GKEMasterInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.GKEMasterInfo)
+ GKEMasterInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GKEMasterInfo.newBuilder() to construct.
+ private GKEMasterInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GKEMasterInfo() {
+ clusterUri_ = "";
+ clusterNetworkUri_ = "";
+ internalIp_ = "";
+ externalIp_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GKEMasterInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.GKEMasterInfo.class,
+ com.google.events.cloud.networkmanagement.v1.GKEMasterInfo.Builder.class);
+ }
+
+ public static final int CLUSTER_URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object clusterUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @return The clusterUri.
+ */
+ @java.lang.Override
+ public java.lang.String getClusterUri() {
+ java.lang.Object ref = clusterUri_;
+ 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();
+ clusterUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @return The bytes for clusterUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getClusterUriBytes() {
+ java.lang.Object ref = clusterUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ clusterUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLUSTER_NETWORK_URI_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object clusterNetworkUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @return The clusterNetworkUri.
+ */
+ @java.lang.Override
+ public java.lang.String getClusterNetworkUri() {
+ java.lang.Object ref = clusterNetworkUri_;
+ 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();
+ clusterNetworkUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @return The bytes for clusterNetworkUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getClusterNetworkUriBytes() {
+ java.lang.Object ref = clusterNetworkUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ clusterNetworkUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INTERNAL_IP_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object internalIp_ = "";
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The internalIp.
+ */
+ @java.lang.Override
+ public java.lang.String getInternalIp() {
+ java.lang.Object ref = internalIp_;
+ 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();
+ internalIp_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The bytes for internalIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInternalIpBytes() {
+ java.lang.Object ref = internalIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ internalIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXTERNAL_IP_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object externalIp_ = "";
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The externalIp.
+ */
+ @java.lang.Override
+ public java.lang.String getExternalIp() {
+ java.lang.Object ref = externalIp_;
+ 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();
+ externalIp_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The bytes for externalIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getExternalIpBytes() {
+ java.lang.Object ref = externalIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ externalIp_ = 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(clusterUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNetworkUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterNetworkUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, internalIp_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalIp_);
+ }
+ 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(clusterUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNetworkUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterNetworkUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, internalIp_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalIp_);
+ }
+ 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.events.cloud.networkmanagement.v1.GKEMasterInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.GKEMasterInfo other =
+ (com.google.events.cloud.networkmanagement.v1.GKEMasterInfo) obj;
+
+ if (!getClusterUri().equals(other.getClusterUri())) return false;
+ if (!getClusterNetworkUri().equals(other.getClusterNetworkUri())) return false;
+ if (!getInternalIp().equals(other.getInternalIp())) return false;
+ if (!getExternalIp().equals(other.getExternalIp())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CLUSTER_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getClusterUri().hashCode();
+ hash = (37 * hash) + CLUSTER_NETWORK_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getClusterNetworkUri().hashCode();
+ hash = (37 * hash) + INTERNAL_IP_FIELD_NUMBER;
+ hash = (53 * hash) + getInternalIp().hashCode();
+ hash = (37 * hash) + EXTERNAL_IP_FIELD_NUMBER;
+ hash = (53 * hash) + getExternalIp().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo 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.events.cloud.networkmanagement.v1.GKEMasterInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo 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.events.cloud.networkmanagement.v1.GKEMasterInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo 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.events.cloud.networkmanagement.v1.GKEMasterInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo 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.events.cloud.networkmanagement.v1.GKEMasterInfo 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 Google Kubernetes Engine (GKE)
+ * cluster master.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.GKEMasterInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.GKEMasterInfo)
+ com.google.events.cloud.networkmanagement.v1.GKEMasterInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.GKEMasterInfo.class,
+ com.google.events.cloud.networkmanagement.v1.GKEMasterInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.GKEMasterInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ clusterUri_ = "";
+ clusterNetworkUri_ = "";
+ internalIp_ = "";
+ externalIp_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GKEMasterInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.GKEMasterInfo getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.GKEMasterInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.GKEMasterInfo build() {
+ com.google.events.cloud.networkmanagement.v1.GKEMasterInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.GKEMasterInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.GKEMasterInfo result =
+ new com.google.events.cloud.networkmanagement.v1.GKEMasterInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.events.cloud.networkmanagement.v1.GKEMasterInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.clusterUri_ = clusterUri_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.clusterNetworkUri_ = clusterNetworkUri_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.internalIp_ = internalIp_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.externalIp_ = externalIp_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.GKEMasterInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.GKEMasterInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.GKEMasterInfo other) {
+ if (other == com.google.events.cloud.networkmanagement.v1.GKEMasterInfo.getDefaultInstance())
+ return this;
+ if (!other.getClusterUri().isEmpty()) {
+ clusterUri_ = other.clusterUri_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getClusterNetworkUri().isEmpty()) {
+ clusterNetworkUri_ = other.clusterNetworkUri_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getInternalIp().isEmpty()) {
+ internalIp_ = other.internalIp_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getExternalIp().isEmpty()) {
+ externalIp_ = other.externalIp_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 18:
+ {
+ clusterUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 18
+ case 34:
+ {
+ clusterNetworkUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 34
+ case 42:
+ {
+ internalIp_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 42
+ case 50:
+ {
+ externalIp_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 50
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object clusterUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @return The clusterUri.
+ */
+ public java.lang.String getClusterUri() {
+ java.lang.Object ref = clusterUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clusterUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @return The bytes for clusterUri.
+ */
+ public com.google.protobuf.ByteString getClusterUriBytes() {
+ java.lang.Object ref = clusterUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ clusterUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @param value The clusterUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ clusterUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearClusterUri() {
+ clusterUri_ = getDefaultInstance().getClusterUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @param value The bytes for clusterUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ clusterUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object clusterNetworkUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @return The clusterNetworkUri.
+ */
+ public java.lang.String getClusterNetworkUri() {
+ java.lang.Object ref = clusterNetworkUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clusterNetworkUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @return The bytes for clusterNetworkUri.
+ */
+ public com.google.protobuf.ByteString getClusterNetworkUriBytes() {
+ java.lang.Object ref = clusterNetworkUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ clusterNetworkUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @param value The clusterNetworkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterNetworkUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ clusterNetworkUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearClusterNetworkUri() {
+ clusterNetworkUri_ = getDefaultInstance().getClusterNetworkUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @param value The bytes for clusterNetworkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterNetworkUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ clusterNetworkUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object internalIp_ = "";
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The internalIp.
+ */
+ public java.lang.String getInternalIp() {
+ java.lang.Object ref = internalIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ internalIp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The bytes for internalIp.
+ */
+ public com.google.protobuf.ByteString getInternalIpBytes() {
+ java.lang.Object ref = internalIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ internalIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @param value The internalIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInternalIp(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ internalIp_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInternalIp() {
+ internalIp_ = getDefaultInstance().getInternalIp();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @param value The bytes for internalIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInternalIpBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ internalIp_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object externalIp_ = "";
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The externalIp.
+ */
+ public java.lang.String getExternalIp() {
+ java.lang.Object ref = externalIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ externalIp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The bytes for externalIp.
+ */
+ public com.google.protobuf.ByteString getExternalIpBytes() {
+ java.lang.Object ref = externalIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ externalIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @param value The externalIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExternalIp(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ externalIp_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearExternalIp() {
+ externalIp_ = getDefaultInstance().getExternalIp();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @param value The bytes for externalIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExternalIpBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ externalIp_ = 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.events.cloud.networkmanagement.v1.GKEMasterInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.GKEMasterInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.GKEMasterInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.GKEMasterInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.GKEMasterInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GKEMasterInfo 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.events.cloud.networkmanagement.v1.GKEMasterInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GKEMasterInfoOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GKEMasterInfoOrBuilder.java
new file mode 100644
index 00000000..54a5617b
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GKEMasterInfoOrBuilder.java
@@ -0,0 +1,125 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface GKEMasterInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.GKEMasterInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @return The clusterUri.
+ */
+ java.lang.String getClusterUri();
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster.
+ *
+ *
+ * string cluster_uri = 2;
+ *
+ * @return The bytes for clusterUri.
+ */
+ com.google.protobuf.ByteString getClusterUriBytes();
+
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @return The clusterNetworkUri.
+ */
+ java.lang.String getClusterNetworkUri();
+ /**
+ *
+ *
+ *
+ * URI of a GKE cluster network.
+ *
+ *
+ * string cluster_network_uri = 4;
+ *
+ * @return The bytes for clusterNetworkUri.
+ */
+ com.google.protobuf.ByteString getClusterNetworkUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The internalIp.
+ */
+ java.lang.String getInternalIp();
+ /**
+ *
+ *
+ *
+ * Internal IP address of a GKE cluster master.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The bytes for internalIp.
+ */
+ com.google.protobuf.ByteString getInternalIpBytes();
+
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The externalIp.
+ */
+ java.lang.String getExternalIp();
+ /**
+ *
+ *
+ *
+ * External IP address of a GKE cluster master.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The bytes for externalIp.
+ */
+ com.google.protobuf.ByteString getExternalIpBytes();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GoogleServiceInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GoogleServiceInfo.java
new file mode 100644
index 00000000..2ecf5d96
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GoogleServiceInfo.java
@@ -0,0 +1,1022 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo}
+ */
+public final class GoogleServiceInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.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();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.class,
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ * Protobuf enum {@code
+ * google.events.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
+ 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.events.cloud.networkmanagement.v1.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.events.cloud.networkmanagement.v1.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.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ getGoogleServiceType() {
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType result =
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType.forNumber(
+ googleServiceType_);
+ return result == null
+ ? com.google.events.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.events.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.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo other =
+ (com.google.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.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.events.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.events.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.events.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.events.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.events.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.events.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.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.GoogleServiceInfo)
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.class,
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.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.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_GoogleServiceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo
+ getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo build() {
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo result =
+ new com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.events.cloud.networkmanagement.v1.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.events.cloud.networkmanagement.v1.GoogleServiceInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo other) {
+ if (other
+ == com.google.events.cloud.networkmanagement.v1.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.events.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.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ getGoogleServiceType() {
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType result =
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ .forNumber(googleServiceType_);
+ return result == null
+ ? com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Recognized type of a Google Service.
+ *
+ *
+ *
+ * .google.events.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.events.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.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.GoogleServiceInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.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.events.cloud.networkmanagement.v1.GoogleServiceInfo
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GoogleServiceInfoOrBuilder.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/GoogleServiceInfoOrBuilder.java
new file mode 100644
index 00000000..7aac7fc4
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+public interface GoogleServiceInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.events.cloud.networkmanagement.v1.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.events.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.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;
+ *
+ *
+ * @return The googleServiceType.
+ */
+ com.google.events.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType
+ getGoogleServiceType();
+}
diff --git a/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/InstanceInfo.java b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/InstanceInfo.java
new file mode 100644
index 00000000..eb5c6fc1
--- /dev/null
+++ b/google-cloudevent-types/src/main/java/com/google/events/cloud/networkmanagement/v1/InstanceInfo.java
@@ -0,0 +1,1999 @@
+/*
+ * 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/events/cloud/networkmanagement/v1/data.proto
+
+package com.google.events.cloud.networkmanagement.v1;
+
+/**
+ *
+ *
+ *
+ * For display only. Metadata associated with a Compute Engine instance.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.InstanceInfo}
+ */
+public final class InstanceInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.events.cloud.networkmanagement.v1.InstanceInfo)
+ InstanceInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use InstanceInfo.newBuilder() to construct.
+ private InstanceInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private InstanceInfo() {
+ displayName_ = "";
+ uri_ = "";
+ interface_ = "";
+ networkUri_ = "";
+ internalIp_ = "";
+ externalIp_ = "";
+ networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ serviceAccount_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new InstanceInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.InstanceInfo.class,
+ com.google.events.cloud.networkmanagement.v1.InstanceInfo.Builder.class);
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Name of a Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * 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 INTERFACE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object interface_ = "";
+ /**
+ *
+ *
+ *
+ * Name of the network interface of a Compute Engine instance.
+ *
+ *
+ * string interface = 3;
+ *
+ * @return The interface.
+ */
+ @java.lang.Override
+ public java.lang.String getInterface() {
+ java.lang.Object ref = interface_;
+ 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();
+ interface_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Name of the network interface of a Compute Engine instance.
+ *
+ *
+ * string interface = 3;
+ *
+ * @return The bytes for interface.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInterfaceBytes() {
+ java.lang.Object ref = interface_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ interface_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NETWORK_URI_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object networkUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine network.
+ *
+ *
+ * string network_uri = 4;
+ *
+ * @return The networkUri.
+ */
+ @java.lang.Override
+ public java.lang.String getNetworkUri() {
+ java.lang.Object ref = networkUri_;
+ 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();
+ networkUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine network.
+ *
+ *
+ * string network_uri = 4;
+ *
+ * @return The bytes for networkUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNetworkUriBytes() {
+ java.lang.Object ref = networkUri_;
+ if (ref instanceof java.lang.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 static final int INTERNAL_IP_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object internalIp_ = "";
+ /**
+ *
+ *
+ *
+ * Internal IP address of the network interface.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The internalIp.
+ */
+ @java.lang.Override
+ public java.lang.String getInternalIp() {
+ java.lang.Object ref = internalIp_;
+ 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();
+ internalIp_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of the network interface.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The bytes for internalIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInternalIpBytes() {
+ java.lang.Object ref = internalIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ internalIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXTERNAL_IP_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object externalIp_ = "";
+ /**
+ *
+ *
+ *
+ * External IP address of the network interface.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The externalIp.
+ */
+ @java.lang.Override
+ public java.lang.String getExternalIp() {
+ java.lang.Object ref = externalIp_;
+ 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();
+ externalIp_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of the network interface.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The bytes for externalIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getExternalIpBytes() {
+ java.lang.Object ref = externalIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ externalIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NETWORK_TAGS_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringList networkTags_;
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @return A list containing the networkTags.
+ */
+ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
+ return networkTags_;
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @return The count of networkTags.
+ */
+ public int getNetworkTagsCount() {
+ return networkTags_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The networkTags at the given index.
+ */
+ public java.lang.String getNetworkTags(int index) {
+ return networkTags_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the networkTags at the given index.
+ */
+ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) {
+ return networkTags_.getByteString(index);
+ }
+
+ public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object serviceAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Service account authorized for the instance.
+ *
+ *
+ * string service_account = 8;
+ *
+ * @return The serviceAccount.
+ */
+ @java.lang.Override
+ public java.lang.String getServiceAccount() {
+ java.lang.Object ref = serviceAccount_;
+ 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();
+ serviceAccount_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Service account authorized for the instance.
+ *
+ *
+ * string service_account = 8;
+ *
+ * @return The bytes for serviceAccount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getServiceAccountBytes() {
+ java.lang.Object ref = serviceAccount_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceAccount_ = 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(interface_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, interface_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, networkUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, internalIp_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalIp_);
+ }
+ for (int i = 0; i < networkTags_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, networkTags_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccount_);
+ }
+ 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(interface_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, interface_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, networkUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, internalIp_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalIp_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < networkTags_.size(); i++) {
+ dataSize += computeStringSizeNoTag(networkTags_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getNetworkTagsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_);
+ }
+ 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.events.cloud.networkmanagement.v1.InstanceInfo)) {
+ return super.equals(obj);
+ }
+ com.google.events.cloud.networkmanagement.v1.InstanceInfo other =
+ (com.google.events.cloud.networkmanagement.v1.InstanceInfo) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getInterface().equals(other.getInterface())) return false;
+ if (!getNetworkUri().equals(other.getNetworkUri())) return false;
+ if (!getInternalIp().equals(other.getInternalIp())) return false;
+ if (!getExternalIp().equals(other.getExternalIp())) return false;
+ if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false;
+ if (!getServiceAccount().equals(other.getServiceAccount())) 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) + INTERFACE_FIELD_NUMBER;
+ hash = (53 * hash) + getInterface().hashCode();
+ hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getNetworkUri().hashCode();
+ hash = (37 * hash) + INTERNAL_IP_FIELD_NUMBER;
+ hash = (53 * hash) + getInternalIp().hashCode();
+ hash = (37 * hash) + EXTERNAL_IP_FIELD_NUMBER;
+ hash = (53 * hash) + getExternalIp().hashCode();
+ if (getNetworkTagsCount() > 0) {
+ hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + getNetworkTagsList().hashCode();
+ }
+ hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceAccount().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo 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.events.cloud.networkmanagement.v1.InstanceInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo 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.events.cloud.networkmanagement.v1.InstanceInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo 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.events.cloud.networkmanagement.v1.InstanceInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo 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.events.cloud.networkmanagement.v1.InstanceInfo 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 instance.
+ *
+ *
+ * Protobuf type {@code google.events.cloud.networkmanagement.v1.InstanceInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.events.cloud.networkmanagement.v1.InstanceInfo)
+ com.google.events.cloud.networkmanagement.v1.InstanceInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.events.cloud.networkmanagement.v1.InstanceInfo.class,
+ com.google.events.cloud.networkmanagement.v1.InstanceInfo.Builder.class);
+ }
+
+ // Construct using com.google.events.cloud.networkmanagement.v1.InstanceInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ displayName_ = "";
+ uri_ = "";
+ interface_ = "";
+ networkUri_ = "";
+ internalIp_ = "";
+ externalIp_ = "";
+ networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ serviceAccount_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.events.cloud.networkmanagement.v1.Data
+ .internal_static_google_events_cloud_networkmanagement_v1_InstanceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.InstanceInfo getDefaultInstanceForType() {
+ return com.google.events.cloud.networkmanagement.v1.InstanceInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.InstanceInfo build() {
+ com.google.events.cloud.networkmanagement.v1.InstanceInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.events.cloud.networkmanagement.v1.InstanceInfo buildPartial() {
+ com.google.events.cloud.networkmanagement.v1.InstanceInfo result =
+ new com.google.events.cloud.networkmanagement.v1.InstanceInfo(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.events.cloud.networkmanagement.v1.InstanceInfo result) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ networkTags_ = networkTags_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.networkTags_ = networkTags_;
+ }
+
+ private void buildPartial0(com.google.events.cloud.networkmanagement.v1.InstanceInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.uri_ = uri_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.interface_ = interface_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.networkUri_ = networkUri_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.internalIp_ = internalIp_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.externalIp_ = externalIp_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.serviceAccount_ = serviceAccount_;
+ }
+ }
+
+ @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.events.cloud.networkmanagement.v1.InstanceInfo) {
+ return mergeFrom((com.google.events.cloud.networkmanagement.v1.InstanceInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.events.cloud.networkmanagement.v1.InstanceInfo other) {
+ if (other == com.google.events.cloud.networkmanagement.v1.InstanceInfo.getDefaultInstance())
+ return this;
+ if (!other.getDisplayName().isEmpty()) {
+ displayName_ = other.displayName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getInterface().isEmpty()) {
+ interface_ = other.interface_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getNetworkUri().isEmpty()) {
+ networkUri_ = other.networkUri_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getInternalIp().isEmpty()) {
+ internalIp_ = other.internalIp_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (!other.getExternalIp().isEmpty()) {
+ externalIp_ = other.externalIp_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (!other.networkTags_.isEmpty()) {
+ if (networkTags_.isEmpty()) {
+ networkTags_ = other.networkTags_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensureNetworkTagsIsMutable();
+ networkTags_.addAll(other.networkTags_);
+ }
+ onChanged();
+ }
+ if (!other.getServiceAccount().isEmpty()) {
+ serviceAccount_ = other.serviceAccount_;
+ bitField0_ |= 0x00000080;
+ 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_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ interface_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34:
+ {
+ networkUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42:
+ {
+ internalIp_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50:
+ {
+ externalIp_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureNetworkTagsIsMutable();
+ networkTags_.add(s);
+ break;
+ } // case 58
+ case 66:
+ {
+ serviceAccount_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Name of a Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Name of a Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * 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 Compute Engine instance.
+ *
+ *
+ * string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine instance.
+ *
+ *
+ * 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 interface_ = "";
+ /**
+ *
+ *
+ *
+ * Name of the network interface of a Compute Engine instance.
+ *
+ *
+ * string interface = 3;
+ *
+ * @return The interface.
+ */
+ public java.lang.String getInterface() {
+ java.lang.Object ref = interface_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ interface_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Name of the network interface of a Compute Engine instance.
+ *
+ *
+ * string interface = 3;
+ *
+ * @return The bytes for interface.
+ */
+ public com.google.protobuf.ByteString getInterfaceBytes() {
+ java.lang.Object ref = interface_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ interface_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Name of the network interface of a Compute Engine instance.
+ *
+ *
+ * string interface = 3;
+ *
+ * @param value The interface to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInterface(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ interface_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Name of the network interface of a Compute Engine instance.
+ *
+ *
+ * string interface = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInterface() {
+ interface_ = getDefaultInstance().getInterface();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Name of the network interface of a Compute Engine instance.
+ *
+ *
+ * string interface = 3;
+ *
+ * @param value The bytes for interface to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInterfaceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ interface_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object networkUri_ = "";
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine network.
+ *
+ *
+ * string network_uri = 4;
+ *
+ * @return The networkUri.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine network.
+ *
+ *
+ * string network_uri = 4;
+ *
+ * @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.
+ *
+ *
+ * string network_uri = 4;
+ *
+ * @param value The networkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ networkUri_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine network.
+ *
+ *
+ * string network_uri = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNetworkUri() {
+ networkUri_ = getDefaultInstance().getNetworkUri();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * URI of a Compute Engine network.
+ *
+ *
+ * string network_uri = 4;
+ *
+ * @param value The bytes for networkUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ networkUri_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object internalIp_ = "";
+ /**
+ *
+ *
+ *
+ * Internal IP address of the network interface.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The internalIp.
+ */
+ public java.lang.String getInternalIp() {
+ java.lang.Object ref = internalIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ internalIp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of the network interface.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return The bytes for internalIp.
+ */
+ public com.google.protobuf.ByteString getInternalIpBytes() {
+ java.lang.Object ref = internalIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ internalIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of the network interface.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @param value The internalIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInternalIp(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ internalIp_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of the network interface.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInternalIp() {
+ internalIp_ = getDefaultInstance().getInternalIp();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Internal IP address of the network interface.
+ *
+ *
+ * string internal_ip = 5;
+ *
+ * @param value The bytes for internalIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInternalIpBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ internalIp_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object externalIp_ = "";
+ /**
+ *
+ *
+ *
+ * External IP address of the network interface.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The externalIp.
+ */
+ public java.lang.String getExternalIp() {
+ java.lang.Object ref = externalIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ externalIp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of the network interface.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return The bytes for externalIp.
+ */
+ public com.google.protobuf.ByteString getExternalIpBytes() {
+ java.lang.Object ref = externalIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ externalIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of the network interface.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @param value The externalIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExternalIp(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ externalIp_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of the network interface.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearExternalIp() {
+ externalIp_ = getDefaultInstance().getExternalIp();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * External IP address of the network interface.
+ *
+ *
+ * string external_ip = 6;
+ *
+ * @param value The bytes for externalIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExternalIpBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ externalIp_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList networkTags_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureNetworkTagsIsMutable() {
+ if (!((bitField0_ & 0x00000040) != 0)) {
+ networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @return A list containing the networkTags.
+ */
+ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
+ return networkTags_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @return The count of networkTags.
+ */
+ public int getNetworkTagsCount() {
+ return networkTags_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The networkTags at the given index.
+ */
+ public java.lang.String getNetworkTags(int index) {
+ return networkTags_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the networkTags at the given index.
+ */
+ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) {
+ return networkTags_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @param index The index to set the value at.
+ * @param value The networkTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNetworkTags(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNetworkTagsIsMutable();
+ networkTags_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @param value The networkTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNetworkTags(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNetworkTagsIsMutable();
+ networkTags_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @param values The networkTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllNetworkTags(java.lang.Iterable values) {
+ ensureNetworkTagsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNetworkTags() {
+ networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Network tags configured on the instance.
+ *
+ *
+ * repeated string network_tags = 7;
+ *
+ * @param value The bytes of the networkTags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureNetworkTagsIsMutable();
+ networkTags_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Service account authorized for the instance.
+ *
+ *
+ * string service_account = 8;
+ *
+ * @return The serviceAccount.
+ */
+ public java.lang.String getServiceAccount() {
+ java.lang.Object ref = serviceAccount_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceAccount_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Service account authorized for the instance.
+ *
+ *
+ * string service_account = 8;
+ *
+ * @return The bytes for serviceAccount.
+ */
+ public com.google.protobuf.ByteString getServiceAccountBytes() {
+ java.lang.Object ref = serviceAccount_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Service account authorized for the instance.
+ *
+ *
+ * string service_account = 8;
+ *
+ * @param value The serviceAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceAccount(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ serviceAccount_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Service account authorized for the instance.
+ *
+ *
+ * string service_account = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceAccount() {
+ serviceAccount_ = getDefaultInstance().getServiceAccount();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Service account authorized for the instance.
+ *
+ *
+ * string service_account = 8;
+ *
+ * @param value The bytes for serviceAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ serviceAccount_ = value;
+ bitField0_ |= 0x00000080;
+ 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.events.cloud.networkmanagement.v1.InstanceInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.networkmanagement.v1.InstanceInfo)
+ private static final com.google.events.cloud.networkmanagement.v1.InstanceInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.events.cloud.networkmanagement.v1.InstanceInfo();
+ }
+
+ public static com.google.events.cloud.networkmanagement.v1.InstanceInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public InstanceInfo 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