# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/networkconnectivity/v1/policy_based_routing.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/longrunning/operations_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/networkconnectivity/v1/policy_based_routing.proto", :syntax => :proto3) do add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute" do optional :name, :string, 1 optional :create_time, :message, 2, "google.protobuf.Timestamp" optional :update_time, :message, 3, "google.protobuf.Timestamp" map :labels, :string, :string, 4 optional :description, :string, 5 optional :network, :string, 6 optional :filter, :message, 10, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter" optional :priority, :int32, 11 repeated :warnings, :message, 14, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings" optional :self_link, :string, 15 optional :kind, :string, 16 oneof :target do optional :virtual_machine, :message, 18, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine" optional :interconnect_attachment, :message, 9, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment" end oneof :next_hop do optional :next_hop_ilb_ip, :string, 12 end end add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine" do repeated :tags, :string, 1 end add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment" do optional :region, :string, 1 end add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter" do optional :ip_protocol, :string, 1 optional :src_range, :string, 2 optional :dest_range, :string, 3 optional :protocol_version, :enum, 6, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion" end add_enum "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion" do value :PROTOCOL_VERSION_UNSPECIFIED, 0 value :IPV4, 1 end add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings" do optional :code, :enum, 1, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code" map :data, :string, :string, 2 optional :warning_message, :string, 3 end add_enum "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code" do value :WARNING_UNSPECIFIED, 0 value :RESOURCE_NOT_ACTIVE, 1 value :RESOURCE_BEING_MODIFIED, 2 end add_message "google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest" do optional :parent, :string, 1 optional :page_size, :int32, 2 optional :page_token, :string, 3 optional :filter, :string, 4 optional :order_by, :string, 5 end add_message "google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse" do repeated :policy_based_routes, :message, 1, "google.cloud.networkconnectivity.v1.PolicyBasedRoute" optional :next_page_token, :string, 2 repeated :unreachable, :string, 3 end add_message "google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest" do optional :name, :string, 1 end add_message "google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest" do optional :parent, :string, 1 optional :policy_based_route_id, :string, 2 optional :policy_based_route, :message, 3, "google.cloud.networkconnectivity.v1.PolicyBasedRoute" optional :request_id, :string, 4 end add_message "google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest" do optional :name, :string, 1 optional :request_id, :string, 2 end end end module Google module Cloud module NetworkConnectivity module V1 PolicyBasedRoute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute").msgclass PolicyBasedRoute::VirtualMachine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine").msgclass PolicyBasedRoute::InterconnectAttachment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment").msgclass PolicyBasedRoute::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter").msgclass PolicyBasedRoute::Filter::ProtocolVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion").enummodule PolicyBasedRoute::Warnings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings").msgclass PolicyBasedRoute::Warnings::Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code").enummodule ListPolicyBasedRoutesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest").msgclass ListPolicyBasedRoutesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse").msgclass GetPolicyBasedRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest").msgclass CreatePolicyBasedRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest").msgclass DeletePolicyBasedRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest").msgclass end end end end