Include ReplicationConfig in chromite protos.

- Re-compiled protos to include http://crrev.com/c/1879313,
and added src/config directory.

BUG=chromium:1018294
TEST=compile_build_api_proto

Change-Id: Ifa4209bf3c55007027a0b504a8a16bcd4f8cf6da
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1887914
Tested-by: Andrew Lamb <andrewlamb@chromium.org>
Auto-Submit: Andrew Lamb <andrewlamb@chromium.org>
Reviewed-by: David Burger <dburger@chromium.org>
Commit-Queue: Andrew Lamb <andrewlamb@chromium.org>
diff --git a/api/compile_build_api_proto.py b/api/compile_build_api_proto.py
index 4871719..944efc9 100644
--- a/api/compile_build_api_proto.py
+++ b/api/compile_build_api_proto.py
@@ -93,6 +93,7 @@
   subdirs = [
       os.path.join(source, 'chromite'),
       os.path.join(source, 'chromiumos'),
+      os.path.join(source, 'config'),
       os.path.join(source, 'test_platform')
   ]
   for basedir in subdirs:
diff --git a/api/gen/config/__init__.py b/api/gen/config/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/api/gen/config/__init__.py
diff --git a/api/gen/config/replication_config_pb2.py b/api/gen/config/replication_config_pb2.py
new file mode 100644
index 0000000..055a35e
--- /dev/null
+++ b/api/gen/config/replication_config_pb2.py
@@ -0,0 +1,126 @@
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: config/replication_config.proto
+
+import sys
+_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import message as _message
+from google.protobuf import reflection as _reflection
+from google.protobuf import symbol_database as _symbol_database
+# @@protoc_insertion_point(imports)
+
+_sym_db = _symbol_database.Default()
+
+
+from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
+
+
+DESCRIPTOR = _descriptor.FileDescriptor(
+  name='config/replication_config.proto',
+  package='config',
+  syntax='proto3',
+  serialized_options=None,
+  serialized_pb=_b('\n\x1f\x63onfig/replication_config.proto\x12\x06\x63onfig\x1a google/protobuf/field_mask.proto\"|\n\x13\x46ileReplicationRule\x12\x13\n\x0bsource_path\x18\x01 \x01(\t\x12\x18\n\x10\x64\x65stination_path\x18\x02 \x01(\t\x12\x36\n\x12\x64\x65stination_fields\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"P\n\x11ReplicationConfig\x12;\n\x16\x66ile_replication_rules\x18\x01 \x03(\x0b\x32\x1b.config.FileReplicationRuleb\x06proto3')
+  ,
+  dependencies=[google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,])
+
+
+
+
+_FILEREPLICATIONRULE = _descriptor.Descriptor(
+  name='FileReplicationRule',
+  full_name='config.FileReplicationRule',
+  filename=None,
+  file=DESCRIPTOR,
+  containing_type=None,
+  fields=[
+    _descriptor.FieldDescriptor(
+      name='source_path', full_name='config.FileReplicationRule.source_path', index=0,
+      number=1, type=9, cpp_type=9, label=1,
+      has_default_value=False, default_value=_b("").decode('utf-8'),
+      message_type=None, enum_type=None, containing_type=None,
+      is_extension=False, extension_scope=None,
+      serialized_options=None, file=DESCRIPTOR),
+    _descriptor.FieldDescriptor(
+      name='destination_path', full_name='config.FileReplicationRule.destination_path', index=1,
+      number=2, type=9, cpp_type=9, label=1,
+      has_default_value=False, default_value=_b("").decode('utf-8'),
+      message_type=None, enum_type=None, containing_type=None,
+      is_extension=False, extension_scope=None,
+      serialized_options=None, file=DESCRIPTOR),
+    _descriptor.FieldDescriptor(
+      name='destination_fields', full_name='config.FileReplicationRule.destination_fields', index=2,
+      number=3, type=11, cpp_type=10, label=1,
+      has_default_value=False, default_value=None,
+      message_type=None, enum_type=None, containing_type=None,
+      is_extension=False, extension_scope=None,
+      serialized_options=None, file=DESCRIPTOR),
+  ],
+  extensions=[
+  ],
+  nested_types=[],
+  enum_types=[
+  ],
+  serialized_options=None,
+  is_extendable=False,
+  syntax='proto3',
+  extension_ranges=[],
+  oneofs=[
+  ],
+  serialized_start=77,
+  serialized_end=201,
+)
+
+
+_REPLICATIONCONFIG = _descriptor.Descriptor(
+  name='ReplicationConfig',
+  full_name='config.ReplicationConfig',
+  filename=None,
+  file=DESCRIPTOR,
+  containing_type=None,
+  fields=[
+    _descriptor.FieldDescriptor(
+      name='file_replication_rules', full_name='config.ReplicationConfig.file_replication_rules', index=0,
+      number=1, type=11, cpp_type=10, label=3,
+      has_default_value=False, default_value=[],
+      message_type=None, enum_type=None, containing_type=None,
+      is_extension=False, extension_scope=None,
+      serialized_options=None, file=DESCRIPTOR),
+  ],
+  extensions=[
+  ],
+  nested_types=[],
+  enum_types=[
+  ],
+  serialized_options=None,
+  is_extendable=False,
+  syntax='proto3',
+  extension_ranges=[],
+  oneofs=[
+  ],
+  serialized_start=203,
+  serialized_end=283,
+)
+
+_FILEREPLICATIONRULE.fields_by_name['destination_fields'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK
+_REPLICATIONCONFIG.fields_by_name['file_replication_rules'].message_type = _FILEREPLICATIONRULE
+DESCRIPTOR.message_types_by_name['FileReplicationRule'] = _FILEREPLICATIONRULE
+DESCRIPTOR.message_types_by_name['ReplicationConfig'] = _REPLICATIONCONFIG
+_sym_db.RegisterFileDescriptor(DESCRIPTOR)
+
+FileReplicationRule = _reflection.GeneratedProtocolMessageType('FileReplicationRule', (_message.Message,), dict(
+  DESCRIPTOR = _FILEREPLICATIONRULE,
+  __module__ = 'config.replication_config_pb2'
+  # @@protoc_insertion_point(class_scope:config.FileReplicationRule)
+  ))
+_sym_db.RegisterMessage(FileReplicationRule)
+
+ReplicationConfig = _reflection.GeneratedProtocolMessageType('ReplicationConfig', (_message.Message,), dict(
+  DESCRIPTOR = _REPLICATIONCONFIG,
+  __module__ = 'config.replication_config_pb2'
+  # @@protoc_insertion_point(class_scope:config.ReplicationConfig)
+  ))
+_sym_db.RegisterMessage(ReplicationConfig)
+
+
+# @@protoc_insertion_point(module_scope)