# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/pubsub/v1/schema.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/protobuf/empty_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/pubsub/v1/schema.proto", :syntax => :proto3) do add_message "google.pubsub.v1.Schema" do optional :name, :string, 1 optional :type, :enum, 2, "google.pubsub.v1.Schema.Type" optional :definition, :string, 3 optional :revision_id, :string, 4 optional :revision_create_time, :message, 6, "google.protobuf.Timestamp" end add_enum "google.pubsub.v1.Schema.Type" do value :TYPE_UNSPECIFIED, 0 value :PROTOCOL_BUFFER, 1 value :AVRO, 2 end add_message "google.pubsub.v1.CreateSchemaRequest" do optional :parent, :string, 1 optional :schema, :message, 2, "google.pubsub.v1.Schema" optional :schema_id, :string, 3 end add_message "google.pubsub.v1.GetSchemaRequest" do optional :name, :string, 1 optional :view, :enum, 2, "google.pubsub.v1.SchemaView" end add_message "google.pubsub.v1.ListSchemasRequest" do optional :parent, :string, 1 optional :view, :enum, 2, "google.pubsub.v1.SchemaView" optional :page_size, :int32, 3 optional :page_token, :string, 4 end add_message "google.pubsub.v1.ListSchemasResponse" do repeated :schemas, :message, 1, "google.pubsub.v1.Schema" optional :next_page_token, :string, 2 end add_message "google.pubsub.v1.ListSchemaRevisionsRequest" do optional :name, :string, 1 optional :view, :enum, 2, "google.pubsub.v1.SchemaView" optional :page_size, :int32, 3 optional :page_token, :string, 4 end add_message "google.pubsub.v1.ListSchemaRevisionsResponse" do repeated :schemas, :message, 1, "google.pubsub.v1.Schema" optional :next_page_token, :string, 2 end add_message "google.pubsub.v1.CommitSchemaRequest" do optional :name, :string, 1 optional :schema, :message, 2, "google.pubsub.v1.Schema" end add_message "google.pubsub.v1.RollbackSchemaRequest" do optional :name, :string, 1 optional :revision_id, :string, 2 end add_message "google.pubsub.v1.DeleteSchemaRevisionRequest" do optional :name, :string, 1 optional :revision_id, :string, 2 end add_message "google.pubsub.v1.DeleteSchemaRequest" do optional :name, :string, 1 end add_message "google.pubsub.v1.ValidateSchemaRequest" do optional :parent, :string, 1 optional :schema, :message, 2, "google.pubsub.v1.Schema" end add_message "google.pubsub.v1.ValidateSchemaResponse" do end add_message "google.pubsub.v1.ValidateMessageRequest" do optional :parent, :string, 1 optional :message, :bytes, 4 optional :encoding, :enum, 5, "google.pubsub.v1.Encoding" oneof :schema_spec do optional :name, :string, 2 optional :schema, :message, 3, "google.pubsub.v1.Schema" end end add_message "google.pubsub.v1.ValidateMessageResponse" do end add_enum "google.pubsub.v1.SchemaView" do value :SCHEMA_VIEW_UNSPECIFIED, 0 value :BASIC, 1 value :FULL, 2 end add_enum "google.pubsub.v1.Encoding" do value :ENCODING_UNSPECIFIED, 0 value :JSON, 1 value :BINARY, 2 end end end module Google module Cloud module PubSub module V1 Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Schema").msgclass Schema::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Schema.Type").enummodule CreateSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSchemaRequest").msgclass GetSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSchemaRequest").msgclass ListSchemasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSchemasRequest").msgclass ListSchemasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSchemasResponse").msgclass ListSchemaRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSchemaRevisionsRequest").msgclass ListSchemaRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSchemaRevisionsResponse").msgclass CommitSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CommitSchemaRequest").msgclass RollbackSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.RollbackSchemaRequest").msgclass DeleteSchemaRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSchemaRevisionRequest").msgclass DeleteSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSchemaRequest").msgclass ValidateSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ValidateSchemaRequest").msgclass ValidateSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ValidateSchemaResponse").msgclass ValidateMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ValidateMessageRequest").msgclass ValidateMessageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ValidateMessageResponse").msgclass SchemaView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SchemaView").enummodule Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Encoding").enummodule end end end end