# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/networksecurity/v1beta1/server_tls_policy.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/cloud/networksecurity/v1beta1/tls_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n<google/cloud/networksecurity/v1beta1/server_tls_policy.proto\x12$google.cloud.networksecurity.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/networksecurity/v1beta1/tls.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xce\x05\n\x0fServerTlsPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x06labels\x18\x05 \x03(\x0b\x32\x41.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.LabelsEntry\x12\x12\n\nallow_open\x18\x06 \x01(\x08\x12U\n\x12server_certificate\x18\x07 \x01(\x0b\x32\x39.google.cloud.networksecurity.v1beta1.CertificateProvider\x12U\n\x0bmtls_policy\x18\x08 \x01(\x0b\x32@.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy\x1a^\n\nMTLSPolicy\x12P\n\x14\x63lient_validation_ca\x18\x01 \x03(\x0b\x32\x32.google.cloud.networksecurity.v1beta1.ValidationCA\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x82\x01\xea\x41\x7f\n.networksecurity.googleapis.com/ServerTlsPolicy\x12Mprojects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}\"\x80\x01\n\x1cListServerTlsPoliciesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8c\x01\n\x1dListServerTlsPoliciesResponse\x12R\n\x13server_tls_policies\x18\x01 \x03(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ServerTlsPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x19GetServerTlsPolicyRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networksecurity.googleapis.com/ServerTlsPolicy\"\xe0\x01\n\x1c\x43reateServerTlsPolicyRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.networksecurity.googleapis.com/ServerTlsPolicy\x12!\n\x14server_tls_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x11server_tls_policy\x18\x03 \x01(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ServerTlsPolicyB\x03\xe0\x41\x02\"\xab\x01\n\x1cUpdateServerTlsPolicyRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12U\n\x11server_tls_policy\x18\x02 \x01(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ServerTlsPolicyB\x03\xe0\x41\x02\"d\n\x1c\x44\x65leteServerTlsPolicyRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networksecurity.googleapis.com/ServerTlsPolicyB\x8e\x02\n(com.google.cloud.networksecurity.v1beta1B\x14ServerTlsPolicyProtoP\x01ZRcloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb\xaa\x02$Google.Cloud.NetworkSecurity.V1Beta1\xca\x02$Google\\Cloud\\NetworkSecurity\\V1beta1\xea\x02\'Google::Cloud::NetworkSecurity::V1beta1b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
    ["google.cloud.networksecurity.v1beta1.CertificateProvider", "google/cloud/networksecurity/v1beta1/tls.proto"],
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Google
  module Cloud
    module NetworkSecurity
      module V1beta1
        ServerTlsPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ServerTlsPolicy").msgclass
        ServerTlsPolicy::MTLSPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy").msgclass
        ListServerTlsPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest").msgclass
        ListServerTlsPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse").msgclass
        GetServerTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest").msgclass
        CreateServerTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest").msgclass
        UpdateServerTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest").msgclass
        DeleteServerTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest").msgclass
      end
    end
  end
end
