Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
chore: Update disco-to-proto3-converter and regenerate compute.proto (#…
Browse files Browse the repository at this point in the history
…40)

This is supposed to fix the malformed message fields serialization.
  • Loading branch information
vam-google authored May 11, 2021
1 parent 8f48e81 commit 0e4b428
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ gapic_generator_ruby_repositories()

http_archive(
name = "com_google_disco_to_proto3_converter",
strip_prefix = "disco-to-proto3-converter-6f13b7022a0c0d19ee5a90508082e55b028e1c43",
urls = ["https://github.com/googleapis/disco-to-proto3-converter/archive/6f13b7022a0c0d19ee5a90508082e55b028e1c43.zip"],
strip_prefix = "disco-to-proto3-converter-1839f6aca5e968e59b7acc03e7018b0fda8c480b",
urls = ["https://github.com/googleapis/disco-to-proto3-converter/archive/1839f6aca5e968e59b7acc03e7018b0fda8c480b.zip"],
)

load("@com_google_disco_to_proto3_converter//:repository_rules.bzl", "com_google_disco_to_proto3_converter_properties")
Expand Down
64 changes: 32 additions & 32 deletions google/cloud/compute/v1/compute.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3102,7 +3102,7 @@ message FileContentBuffer {
//
message Allowed {
// The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.
optional string i_p_protocol = 323774237;
optional string I_p_protocol = 488094525;

// An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port.
//
Expand All @@ -3114,7 +3114,7 @@ message Allowed {
//
message Denied {
// The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.
optional string i_p_protocol = 323774237;
optional string I_p_protocol = 488094525;

// An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port.
//
Expand Down Expand Up @@ -3377,28 +3377,6 @@ message ForwardingRule {

}

// This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. This field cannot be used with port or portRange fields.
//
// When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to allow packets addressed to any ports will be forwarded to the backends configured with this forwarding rule.
optional bool all_ports = 445175796;

// This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
optional bool allow_global_access = 499409674;

// Identifies the backend service to which the forwarding rule sends traffic. Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types.
optional string backend_service = 306946058;

// [Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;

// An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;

// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request.
//
// To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
optional string fingerprint = 234678500;

// IP address that this forwarding rule serves. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the target that you specify in the forwarding rule.
//
// If you don't specify a reserved IP address, an ephemeral IP address is assigned. Methods for specifying an IP address:
Expand All @@ -3414,7 +3392,7 @@ message ForwardingRule {
// Must be set to `0.0.0.0` when the target is targetGrpcProxy that has validateForProxyless field set to true.
//
// For Private Service Connect forwarding rules that forward traffic to Google APIs, IP address must be provided.
optional string i_p_address = 522591951;
optional string I_p_address = 42976943;

// The IP protocol to which this rule applies.
//
Expand All @@ -3426,7 +3404,29 @@ message ForwardingRule {
// - Internal HTTP(S) Load Balancing: The load balancing scheme is INTERNAL_MANAGED, and only TCP is valid.
// - HTTP(S), SSL Proxy, and TCP Proxy Load Balancing: The load balancing scheme is EXTERNAL and only TCP is valid.
// - Network Load Balancing: The load balancing scheme is EXTERNAL, and one of TCP or UDP is valid.
optional IPProtocol i_p_protocol = 323774237;
optional IPProtocol I_p_protocol = 488094525;

// This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. This field cannot be used with port or portRange fields.
//
// When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to allow packets addressed to any ports will be forwarded to the backends configured with this forwarding rule.
optional bool all_ports = 445175796;

// This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
optional bool allow_global_access = 499409674;

// Identifies the backend service to which the forwarding rule sends traffic. Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types.
optional string backend_service = 306946058;

// [Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;

// An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;

// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request.
//
// To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
optional string fingerprint = 234678500;

// [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional string id = 3355;
Expand Down Expand Up @@ -7766,6 +7766,9 @@ message NetworkRoutingConfig {
//
// Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for {$api_version}.networks ==)
message Network {
// Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
optional string I_pv4_range = 59234358;

// Must be set to create a VPC network. If not set, a legacy network is created.
//
// When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode.
Expand All @@ -7784,9 +7787,6 @@ message Network {
// [Output Only] The gateway address for default routing out of the network, selected by GCP.
optional string gateway_i_pv4 = 178678877;

// Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
optional string i_pv4_range = 1978454;

// [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional string id = 3355;

Expand Down Expand Up @@ -9000,15 +9000,15 @@ message PacketMirroringFilter {

}

// Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
repeated string I_p_protocols = 98544854;

// IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
repeated string cidr_ranges = 487901697;

// Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
optional Direction direction = 111150975;

// Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
repeated string i_p_protocols = 373325046;

}

//
Expand Down

0 comments on commit 0e4b428

Please sign in to comment.