Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: duplicate the database schema metadata and add last updater related fields (#11948)

h3n4l731b57400439
diff --git a/frontend/src/types/proto/google/protobuf/any.ts b/frontend/src/types/proto/google/protobuf/any.ts
index afc5514bd2..1c425c789d 100644
--- a/frontend/src/types/proto/google/protobuf/any.ts
+++ b/frontend/src/types/proto/google/protobuf/any.ts
@@ -34,7 +34,7 @@ export const protobufPackage = "google.protobuf";
* foo = any.unpack(Foo.getDefaultInstance());
* }
*
- * Example 3: Pack and unpack a message in Python.
+ * Example 3: Pack and unpack a message in Python.
*
* foo = Foo(...)
* any = Any()
@@ -44,7 +44,7 @@ export const protobufPackage = "google.protobuf";
* any.Unpack(foo)
* ...
*
- * Example 4: Pack and unpack a message in Go
+ * Example 4: Pack and unpack a message in Go
*
* foo := &pb.Foo{...}
* any, err := anypb.New(foo)
@@ -64,7 +64,7 @@ export const protobufPackage = "google.protobuf";
* name "y.z".
*
* JSON
- *
+ * ====
* The JSON representation of an `Any` value uses the regular
* representation of the deserialized, embedded message, with an
* additional field `@type` which contains the type URL. Example:
@@ -116,7 +116,8 @@ export interface Any {
*
* Note: this functionality is not currently available in the official
* protobuf release, and it is not used for type URLs beginning with
- * type.googleapis.com.
+ * type.googleapis.com. As of May 2023, there are no widely used type server
+ * implementations and no plans to implement one.
*
* Schemes other than `http`, `https` (or the empty scheme) might be
* used with implementation specific semantics.
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index e228fcead9..3185d3cbac 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -4,6 +4,124 @@ import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
+/** The full set of known editions. */
+export enum Edition {
+ /** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
+ EDITION_UNKNOWN = "EDITION_UNKNOWN",
+ /**
+ * EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
+ * distinct editions. These can't be used to specify the edition of proto
+ * files, but feature definitions must supply proto2/proto3 defaults for
+ * backwards compatibility.
+ */
+ EDITION_PROTO2 = "EDITION_PROTO2",
+ EDITION_PROTO3 = "EDITION_PROTO3",
+ /**
+ * EDITION_2023 - Editions that have been released. The specific values are arbitrary and
+ * should not be depended on, but they will always be time-ordered for easy
+ * comparison.
+ */
+ EDITION_2023 = "EDITION_2023",
+ /**
+ * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
+ * used or relyed on outside of tests.
+ */
+ EDITION_1_TEST_ONLY = "EDITION_1_TEST_ONLY",
+ EDITION_2_TEST_ONLY = "EDITION_2_TEST_ONLY",
+ EDITION_99997_TEST_ONLY = "EDITION_99997_TEST_ONLY",
+ EDITION_99998_TEST_ONLY = "EDITION_99998_TEST_ONLY",
+ EDITION_99999_TEST_ONLY = "EDITION_99999_TEST_ONLY",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function editionFromJSON(object: any): Edition {
+ switch (object) {
+ case 0:
+ case "EDITION_UNKNOWN":
+ return Edition.EDITION_UNKNOWN;
+ case 998:
+ case "EDITION_PROTO2":
+ return Edition.EDITION_PROTO2;
+ case 999:
+ case "EDITION_PROTO3":
+ return Edition.EDITION_PROTO3;
+ case 1000:
+ case "EDITION_2023":
+ return Edition.EDITION_2023;
+ case 1:
+ case "EDITION_1_TEST_ONLY":
+ return Edition.EDITION_1_TEST_ONLY;
+ case 2:
+ case "EDITION_2_TEST_ONLY":
+ return Edition.EDITION_2_TEST_ONLY;
+ case 99997:
+ case "EDITION_99997_TEST_ONLY":
+ return Edition.EDITION_99997_TEST_ONLY;
+ case 99998:
+ case "EDITION_99998_TEST_ONLY":
+ return Edition.EDITION_99998_TEST_ONLY;
+ case 99999:
+ case "EDITION_99999_TEST_ONLY":
+ return Edition.EDITION_99999_TEST_ONLY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return Edition.UNRECOGNIZED;
+ }
+}
+
+export function editionToJSON(object: Edition): string {
+ switch (object) {
+ case Edition.EDITION_UNKNOWN:
+ return "EDITION_UNKNOWN";
+ case Edition.EDITION_PROTO2:
+ return "EDITION_PROTO2";
+ case Edition.EDITION_PROTO3:
+ return "EDITION_PROTO3";
+ case Edition.EDITION_2023:
+ return "EDITION_2023";
+ case Edition.EDITION_1_TEST_ONLY:
+ return "EDITION_1_TEST_ONLY";
+ case Edition.EDITION_2_TEST_ONLY:
+ return "EDITION_2_TEST_ONLY";
+ case Edition.EDITION_99997_TEST_ONLY:
+ return "EDITION_99997_TEST_ONLY";
+ case Edition.EDITION_99998_TEST_ONLY:
+ return "EDITION_99998_TEST_ONLY";
+ case Edition.EDITION_99999_TEST_ONLY:
+ return "EDITION_99999_TEST_ONLY";
+ case Edition.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function editionToNumber(object: Edition): number {
+ switch (object) {
+ case Edition.EDITION_UNKNOWN:
+ return 0;
+ case Edition.EDITION_PROTO2:
+ return 998;
+ case Edition.EDITION_PROTO3:
+ return 999;
+ case Edition.EDITION_2023:
+ return 1000;
+ case Edition.EDITION_1_TEST_ONLY:
+ return 1;
+ case Edition.EDITION_2_TEST_ONLY:
+ return 2;
+ case Edition.EDITION_99997_TEST_ONLY:
+ return 99997;
+ case Edition.EDITION_99998_TEST_ONLY:
+ return 99998;
+ case Edition.EDITION_99999_TEST_ONLY:
+ return 99999;
+ case Edition.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
/**
* The protocol compiler can output a FileDescriptorSet containing the .proto
* files it parses.
@@ -51,8 +169,8 @@ export interface FileDescriptorProto {
* If `edition` is present, this value must be "editions".
*/
syntax: string;
- /** The edition of the proto file, which is an opaque string. */
- edition: string;
+ /** The edition of the proto file. */
+ edition: Edition;
}
/** Describes a message type. */
@@ -96,6 +214,98 @@ export interface DescriptorProto_ReservedRange {
export interface ExtensionRangeOptions {
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
+ /**
+ * For external users: DO NOT USE. We are in the process of open sourcing
+ * extension declaration and executing internal cleanups before it can be
+ * used externally.
+ */
+ declaration: ExtensionRangeOptions_Declaration[];
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
+ /**
+ * The verification state of the range.
+ * TODO: flip the default to DECLARATION once all empty ranges
+ * are marked as UNVERIFIED.
+ */
+ verification: ExtensionRangeOptions_VerificationState;
+}
+
+/** The verification state of the extension range. */
+export enum ExtensionRangeOptions_VerificationState {
+ /** DECLARATION - All the extensions of the range must be declared. */
+ DECLARATION = "DECLARATION",
+ UNVERIFIED = "UNVERIFIED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function extensionRangeOptions_VerificationStateFromJSON(object: any): ExtensionRangeOptions_VerificationState {
+ switch (object) {
+ case 0:
+ case "DECLARATION":
+ return ExtensionRangeOptions_VerificationState.DECLARATION;
+ case 1:
+ case "UNVERIFIED":
+ return ExtensionRangeOptions_VerificationState.UNVERIFIED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;
+ }
+}
+
+export function extensionRangeOptions_VerificationStateToJSON(object: ExtensionRangeOptions_VerificationState): string {
+ switch (object) {
+ case ExtensionRangeOptions_VerificationState.DECLARATION:
+ return "DECLARATION";
+ case ExtensionRangeOptions_VerificationState.UNVERIFIED:
+ return "UNVERIFIED";
+ case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function extensionRangeOptions_VerificationStateToNumber(
+ object: ExtensionRangeOptions_VerificationState,
+): number {
+ switch (object) {
+ case ExtensionRangeOptions_VerificationState.DECLARATION:
+ return 0;
+ case ExtensionRangeOptions_VerificationState.UNVERIFIED:
+ return 1;
+ case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export interface ExtensionRangeOptions_Declaration {
+ /** The extension number declared within the extension range. */
+ number: number;
+ /**
+ * The fully-qualified name of the extension field. There must be a leading
+ * dot in front of the full name.
+ */
+ fullName: string;
+ /**
+ * The fully-qualified type name of the extension field. Unlike
+ * Metadata.type, Declaration.type must have a leading dot for messages
+ * and enums.
+ */
+ type: string;
+ /**
+ * If true, indicates that the number is reserved in the extension range,
+ * and any extension field with the number will fail to compile. Set this
+ * when a declared extension field is deleted.
+ */
+ reserved: boolean;
+ /**
+ * If true, indicates that the extension must be defined as repeated.
+ * Otherwise the extension must be defined as optional.
+ */
+ repeated: boolean;
}
/** Describes a field within a message. */
@@ -193,9 +403,10 @@ export enum FieldDescriptorProto_Type {
TYPE_STRING = "TYPE_STRING",
/**
* TYPE_GROUP - Tag-delimited aggregate.
- * Group type is deprecated and not supported in proto3. However, Proto3
+ * Group type is deprecated and not supported after google.protobuf. However, Proto3
* implementations should still be able to parse the group wire format and
- * treat group fields as unknown fields.
+ * treat group fields as unknown fields. In Editions, the group wire format
+ * can be enabled via the `message_encoding` feature.
*/
TYPE_GROUP = "TYPE_GROUP",
/** TYPE_MESSAGE - Length-delimited aggregate. */
@@ -367,8 +578,13 @@ export function fieldDescriptorProto_TypeToNumber(object: FieldDescriptorProto_T
export enum FieldDescriptorProto_Label {
/** LABEL_OPTIONAL - 0 is reserved for errors */
LABEL_OPTIONAL = "LABEL_OPTIONAL",
- LABEL_REQUIRED = "LABEL_REQUIRED",
LABEL_REPEATED = "LABEL_REPEATED",
+ /**
+ * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
+ * it's explicitly prohibited. In Editions, the `field_presence` feature
+ * can be used to get this behavior.
+ */
+ LABEL_REQUIRED = "LABEL_REQUIRED",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -377,12 +593,12 @@ export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptor
case 1:
case "LABEL_OPTIONAL":
return FieldDescriptorProto_Label.LABEL_OPTIONAL;
- case 2:
- case "LABEL_REQUIRED":
- return FieldDescriptorProto_Label.LABEL_REQUIRED;
case 3:
case "LABEL_REPEATED":
return FieldDescriptorProto_Label.LABEL_REPEATED;
+ case 2:
+ case "LABEL_REQUIRED":
+ return FieldDescriptorProto_Label.LABEL_REQUIRED;
case -1:
case "UNRECOGNIZED":
default:
@@ -394,10 +610,10 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
switch (object) {
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
return "LABEL_OPTIONAL";
- case FieldDescriptorProto_Label.LABEL_REQUIRED:
- return "LABEL_REQUIRED";
case FieldDescriptorProto_Label.LABEL_REPEATED:
return "LABEL_REPEATED";
+ case FieldDescriptorProto_Label.LABEL_REQUIRED:
+ return "LABEL_REQUIRED";
case FieldDescriptorProto_Label.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -408,10 +624,10 @@ export function fieldDescriptorProto_LabelToNumber(object: FieldDescriptorProto_
switch (object) {
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
return 1;
- case FieldDescriptorProto_Label.LABEL_REQUIRED:
- return 2;
case FieldDescriptorProto_Label.LABEL_REPEATED:
return 3;
+ case FieldDescriptorProto_Label.LABEL_REQUIRED:
+ return 2;
case FieldDescriptorProto_Label.UNRECOGNIZED:
default:
return -1;
@@ -605,6 +821,10 @@ export interface FileOptions {
* determining the ruby package.
*/
rubyPackage: string;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/**
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
@@ -737,12 +957,16 @@ export interface MessageOptions {
* This should only be used as a temporary measure against broken builds due
* to the change in behavior for JSON field name conflicts.
*
- * TODO(b/261750190) This is legacy behavior we plan to remove once downstream
+ * TODO This is legacy behavior we plan to remove once downstream
* teams have had time to migrate.
*
* @deprecated
*/
deprecatedLegacyJsonFieldConflicts: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -751,8 +975,10 @@ export interface FieldOptions {
/**
* The ctype option instructs the C++ code generator to use a different
* representation of the field than it normally would. See the specific
- * options below. This option is not yet implemented in the open source
- * release -- sorry, we'll try to include it in a future version!
+ * options below. This option is only implemented to support use of
+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
+ * type "bytes" in the open source release -- sorry, we'll try to include
+ * other types in a future version!
*/
ctype: FieldOptions_CType;
/**
@@ -760,7 +986,9 @@ export interface FieldOptions {
* a more efficient representation on the wire. Rather than repeatedly
* writing the tag and type for each element, the entire array is encoded as
* a single length-delimited blob. In proto3, only explicit setting it to
- * false will avoid using packed encoding.
+ * false will avoid using packed encoding. This option is prohibited in
+ * Editions, but the `repeated_field_encoding` feature can be used to control
+ * the behavior.
*/
packed: boolean;
/**
@@ -831,7 +1059,12 @@ export interface FieldOptions {
*/
debugRedact: boolean;
retention: FieldOptions_OptionRetention;
- target: FieldOptions_OptionTargetType;
+ targets: FieldOptions_OptionTargetType[];
+ editionDefaults: FieldOptions_EditionDefault[];
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -839,6 +1072,14 @@ export interface FieldOptions {
export enum FieldOptions_CType {
/** STRING - Default mode. */
STRING = "STRING",
+ /**
+ * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
+ * instead of a string. For very large strings, this may reduce memory
+ * fragmentation. It may also allow better performance when parsing from a
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
+ * alias the original buffer.
+ */
CORD = "CORD",
STRING_PIECE = "STRING_PIECE",
UNRECOGNIZED = "UNRECOGNIZED",
@@ -1119,7 +1360,17 @@ export function fieldOptions_OptionTargetTypeToNumber(object: FieldOptions_Optio
}
}
+export interface FieldOptions_EditionDefault {
+ edition: Edition;
+ /** Textproto value. */
+ value: string;
+}
+
export interface OneofOptions {
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1142,12 +1393,16 @@ export interface EnumOptions {
* and strips underscored from the fields before comparison in proto3 only.
* The new behavior takes `json_name` into account and applies to proto2 as
* well.
- * TODO(b/261750190) Remove this legacy behavior once downstream teams have
+ * TODO Remove this legacy behavior once downstream teams have
* had time to migrate.
*
* @deprecated
*/
deprecatedLegacyJsonFieldConflicts: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1160,11 +1415,25 @@ export interface EnumValueOptions {
* this is a formalization for deprecating enum values.
*/
deprecated: boolean;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
+ /**
+ * Indicate that fields annotated with this enum value should not be printed
+ * out when using debug formats, e.g. when the field contains sensitive
+ * credentials.
+ */
+ debugRedact: boolean;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
export interface ServiceOptions {
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/**
* Is this service deprecated?
* Depending on the target platform, this can emit Deprecated annotations
@@ -1185,6 +1454,10 @@ export interface MethodOptions {
*/
deprecated: boolean;
idempotencyLevel: MethodOptions_IdempotencyLevel;
+ /** Any features defined in the specific edition. */
+ features:
+ | FeatureSet
+ | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1284,157 +1557,531 @@ export interface UninterpretedOption_NamePart {
}
/**
- * Encapsulates information about the original source file from which a
- * FileDescriptorProto was generated.
+ * TODO Enums in C++ gencode (and potentially other languages) are
+ * not well scoped. This means that each of the feature enums below can clash
+ * with each other. The short names we've chosen maximize call-site
+ * readability, but leave us very open to this scenario. A future feature will
+ * be designed and implemented to handle this, hopefully before we ever hit a
+ * conflict here.
*/
-export interface SourceCodeInfo {
- /**
- * A Location identifies a piece of source code in a .proto file which
- * corresponds to a particular definition. This information is intended
- * to be useful to IDEs, code indexers, documentation generators, and similar
- * tools.
- *
- * For example, say we have a file like:
- * message Foo {
- * optional string foo = 1;
- * }
- * Let's look at just the field definition:
- * optional string foo = 1;
- * ^ ^^ ^^ ^ ^^^
- * a bc de f ghi
- * We have the following locations:
- * span path represents
- * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
- * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
- * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
- * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
- * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
- *
- * Notes:
- * - A location may refer to a repeated field itself (i.e. not to any
- * particular index within it). This is used whenever a set of elements are
- * logically enclosed in a single code segment. For example, an entire
- * extend block (possibly containing multiple extension definitions) will
- * have an outer location whose path refers to the "extensions" repeated
- * field without an index.
- * - Multiple locations may have the same path. This happens when a single
- * logical declaration is spread out across multiple places. The most
- * obvious example is the "extend" block again -- there may be multiple
- * extend blocks in the same scope, each of which will have the same path.
- * - A location's span is not always a subset of its parent's span. For
- * example, the "extendee" of an extension declaration appears at the
- * beginning of the "extend" block and is shared by all extensions within
- * the block.
- * - Just because a location's span is a subset of some other location's span
- * does not mean that it is a descendant. For example, a "group" defines
- * both a type and a field in a single declaration. Thus, the locations
- * corresponding to the type and field and their components will overlap.
- * - Code which tries to interpret locations should probably be designed to
- * ignore those that it doesn't understand, as more types of locations could
- * be recorded in the future.
- */
- location: SourceCodeInfo_Location[];
+export interface FeatureSet {
+ fieldPresence: FeatureSet_FieldPresence;
+ enumType: FeatureSet_EnumType;
+ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding;
+ utf8Validation: FeatureSet_Utf8Validation;
+ messageEncoding: FeatureSet_MessageEncoding;
+ jsonFormat: FeatureSet_JsonFormat;
}
-export interface SourceCodeInfo_Location {
- /**
- * Identifies which part of the FileDescriptorProto was defined at this
- * location.
- *
- * Each element is a field number or an index. They form a path from
- * the root FileDescriptorProto to the place where the definition occurs.
- * For example, this path:
- * [ 4, 3, 2, 7, 1 ]
- * refers to:
- * file.message_type(3) // 4, 3
- * .field(7) // 2, 7
- * .name() // 1
- * This is because FileDescriptorProto.message_type has field number 4:
- * repeated DescriptorProto message_type = 4;
- * and DescriptorProto.field has field number 2:
- * repeated FieldDescriptorProto field = 2;
- * and FieldDescriptorProto.name has field number 1:
- * optional string name = 1;
- *
- * Thus, the above path gives the location of a field name. If we removed
- * the last element:
- * [ 4, 3, 2, 7 ]
- * this path refers to the whole field declaration (from the beginning
- * of the label to the terminating semicolon).
- */
- path: number[];
- /**
- * Always has exactly three or four elements: start line, start column,
- * end line (optional, otherwise assumed same as start line), end column.
- * These are packed into a single field for efficiency. Note that line
- * and column numbers are zero-based -- typically you will want to add
- * 1 to each before displaying to a user.
- */
- span: number[];
- /**
- * If this SourceCodeInfo represents a complete declaration, these are any
- * comments appearing before and after the declaration which appear to be
- * attached to the declaration.
- *
- * A series of line comments appearing on consecutive lines, with no other
- * tokens appearing on those lines, will be treated as a single comment.
- *
- * leading_detached_comments will keep paragraphs of comments that appear
- * before (but not connected to) the current element. Each paragraph,
- * separated by empty lines, will be one comment element in the repeated
- * field.
- *
- * Only the comment content is provided; comment markers (e.g. //) are
- * stripped out. For block comments, leading whitespace and an asterisk
- * will be stripped from the beginning of each line other than the first.
- * Newlines are included in the output.
- *
- * Examples:
- *
- * optional int32 foo = 1; // Comment attached to foo.
- * // Comment attached to bar.
- * optional int32 bar = 2;
- *
- * optional string baz = 3;
- * // Comment attached to baz.
- * // Another line attached to baz.
- *
- * // Comment attached to moo.
- * //
- * // Another line attached to moo.
- * optional double moo = 4;
- *
- * // Detached comment for corge. This is not leading or trailing comments
- * // to moo or corge because there are blank lines separating it from
- * // both.
- *
- * // Detached comment for corge paragraph 2.
- *
- * optional string corge = 5;
- * /* Block comment attached
- * * to corge. Leading asterisks
- * * will be removed. * /
- * /* Block comment attached to
- * * grault. * /
- * optional int32 grault = 6;
- *
- * // ignored detached comments.
- */
- leadingComments: string;
- trailingComments: string;
- leadingDetachedComments: string[];
+export enum FeatureSet_FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = "FIELD_PRESENCE_UNKNOWN",
+ EXPLICIT = "EXPLICIT",
+ IMPLICIT = "IMPLICIT",
+ LEGACY_REQUIRED = "LEGACY_REQUIRED",
+ UNRECOGNIZED = "UNRECOGNIZED",
}
-/**
- * Describes the relationship between generated code and its original source
- * file. A GeneratedCodeInfo message is associated with only one generated
- * source file, but may contain references to different source .proto files.
- */
-export interface GeneratedCodeInfo {
- /**
- * An Annotation connects some span of text in generated code to an element
- * of its generating .proto file.
- */
+export function featureSet_FieldPresenceFromJSON(object: any): FeatureSet_FieldPresence {
+ switch (object) {
+ case 0:
+ case "FIELD_PRESENCE_UNKNOWN":
+ return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
+ case 1:
+ case "EXPLICIT":
+ return FeatureSet_FieldPresence.EXPLICIT;
+ case 2:
+ case "IMPLICIT":
+ return FeatureSet_FieldPresence.IMPLICIT;
+ case 3:
+ case "LEGACY_REQUIRED":
+ return FeatureSet_FieldPresence.LEGACY_REQUIRED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_FieldPresence.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_FieldPresenceToJSON(object: FeatureSet_FieldPresence): string {
+ switch (object) {
+ case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
+ return "FIELD_PRESENCE_UNKNOWN";
+ case FeatureSet_FieldPresence.EXPLICIT:
+ return "EXPLICIT";
+ case FeatureSet_FieldPresence.IMPLICIT:
+ return "IMPLICIT";
+ case FeatureSet_FieldPresence.LEGACY_REQUIRED:
+ return "LEGACY_REQUIRED";
+ case FeatureSet_FieldPresence.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_FieldPresenceToNumber(object: FeatureSet_FieldPresence): number {
+ switch (object) {
+ case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
+ return 0;
+ case FeatureSet_FieldPresence.EXPLICIT:
+ return 1;
+ case FeatureSet_FieldPresence.IMPLICIT:
+ return 2;
+ case FeatureSet_FieldPresence.LEGACY_REQUIRED:
+ return 3;
+ case FeatureSet_FieldPresence.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_EnumType {
+ ENUM_TYPE_UNKNOWN = "ENUM_TYPE_UNKNOWN",
+ OPEN = "OPEN",
+ CLOSED = "CLOSED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_EnumTypeFromJSON(object: any): FeatureSet_EnumType {
+ switch (object) {
+ case 0:
+ case "ENUM_TYPE_UNKNOWN":
+ return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
+ case 1:
+ case "OPEN":
+ return FeatureSet_EnumType.OPEN;
+ case 2:
+ case "CLOSED":
+ return FeatureSet_EnumType.CLOSED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_EnumType.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_EnumTypeToJSON(object: FeatureSet_EnumType): string {
+ switch (object) {
+ case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
+ return "ENUM_TYPE_UNKNOWN";
+ case FeatureSet_EnumType.OPEN:
+ return "OPEN";
+ case FeatureSet_EnumType.CLOSED:
+ return "CLOSED";
+ case FeatureSet_EnumType.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_EnumTypeToNumber(object: FeatureSet_EnumType): number {
+ switch (object) {
+ case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
+ return 0;
+ case FeatureSet_EnumType.OPEN:
+ return 1;
+ case FeatureSet_EnumType.CLOSED:
+ return 2;
+ case FeatureSet_EnumType.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = "REPEATED_FIELD_ENCODING_UNKNOWN",
+ PACKED = "PACKED",
+ EXPANDED = "EXPANDED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_RepeatedFieldEncodingFromJSON(object: any): FeatureSet_RepeatedFieldEncoding {
+ switch (object) {
+ case 0:
+ case "REPEATED_FIELD_ENCODING_UNKNOWN":
+ return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
+ case 1:
+ case "PACKED":
+ return FeatureSet_RepeatedFieldEncoding.PACKED;
+ case 2:
+ case "EXPANDED":
+ return FeatureSet_RepeatedFieldEncoding.EXPANDED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_RepeatedFieldEncodingToJSON(object: FeatureSet_RepeatedFieldEncoding): string {
+ switch (object) {
+ case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
+ return "REPEATED_FIELD_ENCODING_UNKNOWN";
+ case FeatureSet_RepeatedFieldEncoding.PACKED:
+ return "PACKED";
+ case FeatureSet_RepeatedFieldEncoding.EXPANDED:
+ return "EXPANDED";
+ case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_RepeatedFieldEncodingToNumber(object: FeatureSet_RepeatedFieldEncoding): number {
+ switch (object) {
+ case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
+ return 0;
+ case FeatureSet_RepeatedFieldEncoding.PACKED:
+ return 1;
+ case FeatureSet_RepeatedFieldEncoding.EXPANDED:
+ return 2;
+ case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = "UTF8_VALIDATION_UNKNOWN",
+ NONE = "NONE",
+ VERIFY = "VERIFY",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation {
+ switch (object) {
+ case 0:
+ case "UTF8_VALIDATION_UNKNOWN":
+ return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
+ case 1:
+ case "NONE":
+ return FeatureSet_Utf8Validation.NONE;
+ case 2:
+ case "VERIFY":
+ return FeatureSet_Utf8Validation.VERIFY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_Utf8Validation.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validation): string {
+ switch (object) {
+ case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
+ return "UTF8_VALIDATION_UNKNOWN";
+ case FeatureSet_Utf8Validation.NONE:
+ return "NONE";
+ case FeatureSet_Utf8Validation.VERIFY:
+ return "VERIFY";
+ case FeatureSet_Utf8Validation.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_Utf8ValidationToNumber(object: FeatureSet_Utf8Validation): number {
+ switch (object) {
+ case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
+ return 0;
+ case FeatureSet_Utf8Validation.NONE:
+ return 1;
+ case FeatureSet_Utf8Validation.VERIFY:
+ return 2;
+ case FeatureSet_Utf8Validation.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = "MESSAGE_ENCODING_UNKNOWN",
+ LENGTH_PREFIXED = "LENGTH_PREFIXED",
+ DELIMITED = "DELIMITED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_MessageEncodingFromJSON(object: any): FeatureSet_MessageEncoding {
+ switch (object) {
+ case 0:
+ case "MESSAGE_ENCODING_UNKNOWN":
+ return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
+ case 1:
+ case "LENGTH_PREFIXED":
+ return FeatureSet_MessageEncoding.LENGTH_PREFIXED;
+ case 2:
+ case "DELIMITED":
+ return FeatureSet_MessageEncoding.DELIMITED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_MessageEncoding.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_MessageEncodingToJSON(object: FeatureSet_MessageEncoding): string {
+ switch (object) {
+ case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
+ return "MESSAGE_ENCODING_UNKNOWN";
+ case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
+ return "LENGTH_PREFIXED";
+ case FeatureSet_MessageEncoding.DELIMITED:
+ return "DELIMITED";
+ case FeatureSet_MessageEncoding.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_MessageEncodingToNumber(object: FeatureSet_MessageEncoding): number {
+ switch (object) {
+ case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
+ return 0;
+ case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
+ return 1;
+ case FeatureSet_MessageEncoding.DELIMITED:
+ return 2;
+ case FeatureSet_MessageEncoding.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum FeatureSet_JsonFormat {
+ JSON_FORMAT_UNKNOWN = "JSON_FORMAT_UNKNOWN",
+ ALLOW = "ALLOW",
+ LEGACY_BEST_EFFORT = "LEGACY_BEST_EFFORT",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat {
+ switch (object) {
+ case 0:
+ case "JSON_FORMAT_UNKNOWN":
+ return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
+ case 1:
+ case "ALLOW":
+ return FeatureSet_JsonFormat.ALLOW;
+ case 2:
+ case "LEGACY_BEST_EFFORT":
+ return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return FeatureSet_JsonFormat.UNRECOGNIZED;
+ }
+}
+
+export function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string {
+ switch (object) {
+ case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
+ return "JSON_FORMAT_UNKNOWN";
+ case FeatureSet_JsonFormat.ALLOW:
+ return "ALLOW";
+ case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
+ return "LEGACY_BEST_EFFORT";
+ case FeatureSet_JsonFormat.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function featureSet_JsonFormatToNumber(object: FeatureSet_JsonFormat): number {
+ switch (object) {
+ case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
+ return 0;
+ case FeatureSet_JsonFormat.ALLOW:
+ return 1;
+ case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
+ return 2;
+ case FeatureSet_JsonFormat.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+/**
+ * A compiled specification for the defaults of a set of features. These
+ * messages are generated from FeatureSet extensions and can be used to seed
+ * feature resolution. The resolution with this object becomes a simple search
+ * for the closest matching edition, followed by proto merges.
+ */
+export interface FeatureSetDefaults {
+ defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
+ /**
+ * The minimum supported edition (inclusive) when this was constructed.
+ * Editions before this will not have defaults.
+ */
+ minimumEdition: Edition;
+ /**
+ * The maximum known edition (inclusive) when this was constructed. Editions
+ * after this will not have reliable defaults.
+ */
+ maximumEdition: Edition;
+}
+
+/**
+ * A map from every known edition with a unique set of defaults to its
+ * defaults. Not all editions may be contained here. For a given edition,
+ * the defaults at the closest matching edition ordered at or before it should
+ * be used. This field must be in strict ascending order by edition.
+ */
+export interface FeatureSetDefaults_FeatureSetEditionDefault {
+ edition: Edition;
+ features: FeatureSet | undefined;
+}
+
+/**
+ * Encapsulates information about the original source file from which a
+ * FileDescriptorProto was generated.
+ */
+export interface SourceCodeInfo {
+ /**
+ * A Location identifies a piece of source code in a .proto file which
+ * corresponds to a particular definition. This information is intended
+ * to be useful to IDEs, code indexers, documentation generators, and similar
+ * tools.
+ *
+ * For example, say we have a file like:
+ * message Foo {
+ * optional string foo = 1;
+ * }
+ * Let's look at just the field definition:
+ * optional string foo = 1;
+ * ^ ^^ ^^ ^ ^^^
+ * a bc de f ghi
+ * We have the following locations:
+ * span path represents
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
+ *
+ * Notes:
+ * - A location may refer to a repeated field itself (i.e. not to any
+ * particular index within it). This is used whenever a set of elements are
+ * logically enclosed in a single code segment. For example, an entire
+ * extend block (possibly containing multiple extension definitions) will
+ * have an outer location whose path refers to the "extensions" repeated
+ * field without an index.
+ * - Multiple locations may have the same path. This happens when a single
+ * logical declaration is spread out across multiple places. The most
+ * obvious example is the "extend" block again -- there may be multiple
+ * extend blocks in the same scope, each of which will have the same path.
+ * - A location's span is not always a subset of its parent's span. For
+ * example, the "extendee" of an extension declaration appears at the
+ * beginning of the "extend" block and is shared by all extensions within
+ * the block.
+ * - Just because a location's span is a subset of some other location's span
+ * does not mean that it is a descendant. For example, a "group" defines
+ * both a type and a field in a single declaration. Thus, the locations
+ * corresponding to the type and field and their components will overlap.
+ * - Code which tries to interpret locations should probably be designed to
+ * ignore those that it doesn't understand, as more types of locations could
+ * be recorded in the future.
+ */
+ location: SourceCodeInfo_Location[];
+}
+
+export interface SourceCodeInfo_Location {
+ /**
+ * Identifies which part of the FileDescriptorProto was defined at this
+ * location.
+ *
+ * Each element is a field number or an index. They form a path from
+ * the root FileDescriptorProto to the place where the definition occurs.
+ * For example, this path:
+ * [ 4, 3, 2, 7, 1 ]
+ * refers to:
+ * file.message_type(3) // 4, 3
+ * .field(7) // 2, 7
+ * .name() // 1
+ * This is because FileDescriptorProto.message_type has field number 4:
+ * repeated DescriptorProto message_type = 4;
+ * and DescriptorProto.field has field number 2:
+ * repeated FieldDescriptorProto field = 2;
+ * and FieldDescriptorProto.name has field number 1:
+ * optional string name = 1;
+ *
+ * Thus, the above path gives the location of a field name. If we removed
+ * the last element:
+ * [ 4, 3, 2, 7 ]
+ * this path refers to the whole field declaration (from the beginning
+ * of the label to the terminating semicolon).
+ */
+ path: number[];
+ /**
+ * Always has exactly three or four elements: start line, start column,
+ * end line (optional, otherwise assumed same as start line), end column.
+ * These are packed into a single field for efficiency. Note that line
+ * and column numbers are zero-based -- typically you will want to add
+ * 1 to each before displaying to a user.
+ */
+ span: number[];
+ /**
+ * If this SourceCodeInfo represents a complete declaration, these are any
+ * comments appearing before and after the declaration which appear to be
+ * attached to the declaration.
+ *
+ * A series of line comments appearing on consecutive lines, with no other
+ * tokens appearing on those lines, will be treated as a single comment.
+ *
+ * leading_detached_comments will keep paragraphs of comments that appear
+ * before (but not connected to) the current element. Each paragraph,
+ * separated by empty lines, will be one comment element in the repeated
+ * field.
+ *
+ * Only the comment content is provided; comment markers (e.g. //) are
+ * stripped out. For block comments, leading whitespace and an asterisk
+ * will be stripped from the beginning of each line other than the first.
+ * Newlines are included in the output.
+ *
+ * Examples:
+ *
+ * optional int32 foo = 1; // Comment attached to foo.
+ * // Comment attached to bar.
+ * optional int32 bar = 2;
+ *
+ * optional string baz = 3;
+ * // Comment attached to baz.
+ * // Another line attached to baz.
+ *
+ * // Comment attached to moo.
+ * //
+ * // Another line attached to moo.
+ * optional double moo = 4;
+ *
+ * // Detached comment for corge. This is not leading or trailing comments
+ * // to moo or corge because there are blank lines separating it from
+ * // both.
+ *
+ * // Detached comment for corge paragraph 2.
+ *
+ * optional string corge = 5;
+ * /* Block comment attached
+ * * to corge. Leading asterisks
+ * * will be removed. * /
+ * /* Block comment attached to
+ * * grault. * /
+ * optional int32 grault = 6;
+ *
+ * // ignored detached comments.
+ */
+ leadingComments: string;
+ trailingComments: string;
+ leadingDetachedComments: string[];
+}
+
+/**
+ * Describes the relationship between generated code and its original source
+ * file. A GeneratedCodeInfo message is associated with only one generated
+ * source file, but may contain references to different source .proto files.
+ */
+export interface GeneratedCodeInfo {
+ /**
+ * An Annotation connects some span of text in generated code to an element
+ * of its generating .proto file.
+ */
annotation: GeneratedCodeInfo_Annotation[];
}
@@ -1593,7 +2240,7 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {
options: undefined,
sourceCodeInfo: undefined,
syntax: "",
- edition: "",
+ edition: Edition.EDITION_UNKNOWN,
};
}
@@ -1639,8 +2286,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
writer.uint32(98).string(message.syntax);
}
- if (message.edition !== "") {
- writer.uint32(106).string(message.edition);
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(112).int32(editionToNumber(message.edition));
}
return writer;
},
@@ -1756,12 +2403,12 @@ export const FileDescriptorProto = {
message.syntax = reader.string();
continue;
- case 13:
- if (tag !== 106) {
+ case 14:
+ if (tag !== 112) {
break;
}
- message.edition = reader.string();
+ message.edition = editionFromJSON(reader.int32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
@@ -1800,7 +2447,7 @@ export const FileDescriptorProto = {
options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,
sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,
syntax: isSet(object.syntax) ? globalThis.String(object.syntax) : "",
- edition: isSet(object.edition) ? globalThis.String(object.edition) : "",
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,
};
},
@@ -1842,8 +2489,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
obj.syntax = message.syntax;
}
- if (message.edition !== "") {
- obj.edition = message.edition;
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ obj.edition = editionToJSON(message.edition);
}
return obj;
},
@@ -1869,7 +2516,7 @@ export const FileDescriptorProto = {
? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
: undefined;
message.syntax = object.syntax ?? "";
- message.edition = object.edition ?? "";
+ message.edition = object.edition ?? Edition.EDITION_UNKNOWN;
return message;
},
};
@@ -2263,7 +2910,12 @@ export const DescriptorProto_ReservedRange = {
};
function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
- return { uninterpretedOption: [] };
+ return {
+ uninterpretedOption: [],
+ declaration: [],
+ features: undefined,
+ verification: ExtensionRangeOptions_VerificationState.DECLARATION,
+ };
}
export const ExtensionRangeOptions = {
@@ -2271,6 +2923,15 @@ export const ExtensionRangeOptions = {
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
+ for (const v of message.declaration) {
+ ExtensionRangeOptions_Declaration.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
+ }
+ if (message.verification !== ExtensionRangeOptions_VerificationState.DECLARATION) {
+ writer.uint32(24).int32(extensionRangeOptions_VerificationStateToNumber(message.verification));
+ }
return writer;
},
@@ -2288,6 +2949,27 @@ export const ExtensionRangeOptions = {
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
+ continue;
+ case 50:
+ if (tag !== 402) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.verification = extensionRangeOptions_VerificationStateFromJSON(reader.int32());
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -2302,6 +2984,13 @@ export const ExtensionRangeOptions = {
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
+ declaration: globalThis.Array.isArray(object?.declaration)
+ ? object.declaration.map((e: any) => ExtensionRangeOptions_Declaration.fromJSON(e))
+ : [],
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ verification: isSet(object.verification)
+ ? extensionRangeOptions_VerificationStateFromJSON(object.verification)
+ : ExtensionRangeOptions_VerificationState.DECLARATION,
};
},
@@ -2310,6 +2999,15 @@ export const ExtensionRangeOptions = {
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
+ if (message.declaration?.length) {
+ obj.declaration = message.declaration.map((e) => ExtensionRangeOptions_Declaration.toJSON(e));
+ }
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ if (message.verification !== ExtensionRangeOptions_VerificationState.DECLARATION) {
+ obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);
+ }
return obj;
},
@@ -2319,6 +3017,130 @@ export const ExtensionRangeOptions = {
fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
const message = createBaseExtensionRangeOptions();
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
+ message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
+ message.verification = object.verification ?? ExtensionRangeOptions_VerificationState.DECLARATION;
+ return message;
+ },
+};
+
+function createBaseExtensionRangeOptions_Declaration(): ExtensionRangeOptions_Declaration {
+ return { number: 0, fullName: "", type: "", reserved: false, repeated: false };
+}
+
+export const ExtensionRangeOptions_Declaration = {
+ encode(message: ExtensionRangeOptions_Declaration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.number !== 0) {
+ writer.uint32(8).int32(message.number);
+ }
+ if (message.fullName !== "") {
+ writer.uint32(18).string(message.fullName);
+ }
+ if (message.type !== "") {
+ writer.uint32(26).string(message.type);
+ }
+ if (message.reserved === true) {
+ writer.uint32(40).bool(message.reserved);
+ }
+ if (message.repeated === true) {
+ writer.uint32(48).bool(message.repeated);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions_Declaration {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseExtensionRangeOptions_Declaration();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.number = reader.int32();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.fullName = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.type = reader.string();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.reserved = reader.bool();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.repeated = reader.bool();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): ExtensionRangeOptions_Declaration {
+ return {
+ number: isSet(object.number) ? globalThis.Number(object.number) : 0,
+ fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
+ reserved: isSet(object.reserved) ? globalThis.Boolean(object.reserved) : false,
+ repeated: isSet(object.repeated) ? globalThis.Boolean(object.repeated) : false,
+ };
+ },
+
+ toJSON(message: ExtensionRangeOptions_Declaration): unknown {
+ const obj: any = {};
+ if (message.number !== 0) {
+ obj.number = Math.round(message.number);
+ }
+ if (message.fullName !== "") {
+ obj.fullName = message.fullName;
+ }
+ if (message.type !== "") {
+ obj.type = message.type;
+ }
+ if (message.reserved === true) {
+ obj.reserved = message.reserved;
+ }
+ if (message.repeated === true) {
+ obj.repeated = message.repeated;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
+ return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
+ const message = createBaseExtensionRangeOptions_Declaration();
+ message.number = object.number ?? 0;
+ message.fullName = object.fullName ?? "";
+ message.type = object.type ?? "";
+ message.reserved = object.reserved ?? false;
+ message.repeated = object.repeated ?? false;
return message;
},
};
@@ -3175,6 +3997,7 @@ function createBaseFileOptions(): FileOptions {
phpNamespace: "",
phpMetadataNamespace: "",
rubyPackage: "",
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3241,6 +4064,9 @@ export const FileOptions = {
if (message.rubyPackage !== "") {
writer.uint32(362).string(message.rubyPackage);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3394,6 +4220,13 @@ export const FileOptions = {
message.rubyPackage = reader.string();
continue;
+ case 50:
+ if (tag !== 402) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3436,6 +4269,7 @@ export const FileOptions = {
phpNamespace: isSet(object.phpNamespace) ? globalThis.String(object.phpNamespace) : "",
phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? globalThis.String(object.phpMetadataNamespace) : "",
rubyPackage: isSet(object.rubyPackage) ? globalThis.String(object.rubyPackage) : "",
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3504,6 +4338,9 @@ export const FileOptions = {
if (message.rubyPackage !== "") {
obj.rubyPackage = message.rubyPackage;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3535,6 +4372,9 @@ export const FileOptions = {
message.phpNamespace = object.phpNamespace ?? "";
message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
message.rubyPackage = object.rubyPackage ?? "";
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -3547,6 +4387,7 @@ function createBaseMessageOptions(): MessageOptions {
deprecated: false,
mapEntry: false,
deprecatedLegacyJsonFieldConflicts: false,
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3568,6 +4409,9 @@ export const MessageOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3616,6 +4460,13 @@ export const MessageOptions = {
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3645,6 +4496,7 @@ export const MessageOptions = {
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
: false,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3668,6 +4520,9 @@ export const MessageOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3684,6 +4539,9 @@ export const MessageOptions = {
message.deprecated = object.deprecated ?? false;
message.mapEntry = object.mapEntry ?? false;
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -3700,7 +4558,9 @@ function createBaseFieldOptions(): FieldOptions {
weak: false,
debugRedact: false,
retention: FieldOptions_OptionRetention.RETENTION_UNKNOWN,
- target: FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN,
+ targets: [],
+ editionDefaults: [],
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -3734,8 +4594,16 @@ export const FieldOptions = {
if (message.retention !== FieldOptions_OptionRetention.RETENTION_UNKNOWN) {
writer.uint32(136).int32(fieldOptions_OptionRetentionToNumber(message.retention));
}
- if (message.target !== FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN) {
- writer.uint32(144).int32(fieldOptions_OptionTargetTypeToNumber(message.target));
+ writer.uint32(154).fork();
+ for (const v of message.targets) {
+ writer.int32(fieldOptions_OptionTargetTypeToNumber(v));
+ }
+ writer.ldelim();
+ for (const v of message.editionDefaults) {
+ FieldOptions_EditionDefault.encode(v!, writer.uint32(162).fork()).ldelim();
+ }
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();
}
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
@@ -3813,12 +4681,36 @@ export const FieldOptions = {
message.retention = fieldOptions_OptionRetentionFromJSON(reader.int32());
continue;
- case 18:
- if (tag !== 144) {
+ case 19:
+ if (tag === 152) {
+ message.targets.push(fieldOptions_OptionTargetTypeFromJSON(reader.int32()));
+
+ continue;
+ }
+
+ if (tag === 154) {
+ const end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2) {
+ message.targets.push(fieldOptions_OptionTargetTypeFromJSON(reader.int32()));
+ }
+
+ continue;
+ }
+
+ break;
+ case 20:
+ if (tag !== 162) {
+ break;
+ }
+
+ message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));
+ continue;
+ case 21:
+ if (tag !== 170) {
break;
}
- message.target = fieldOptions_OptionTargetTypeFromJSON(reader.int32());
+ message.features = FeatureSet.decode(reader, reader.uint32());
continue;
case 999:
if (tag !== 7994) {
@@ -3849,9 +4741,13 @@ export const FieldOptions = {
retention: isSet(object.retention)
? fieldOptions_OptionRetentionFromJSON(object.retention)
: FieldOptions_OptionRetention.RETENTION_UNKNOWN,
- target: isSet(object.target)
- ? fieldOptions_OptionTargetTypeFromJSON(object.target)
- : FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN,
+ targets: globalThis.Array.isArray(object?.targets)
+ ? object.targets.map((e: any) => fieldOptions_OptionTargetTypeFromJSON(e))
+ : [],
+ editionDefaults: globalThis.Array.isArray(object?.editionDefaults)
+ ? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e))
+ : [],
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3887,8 +4783,14 @@ export const FieldOptions = {
if (message.retention !== FieldOptions_OptionRetention.RETENTION_UNKNOWN) {
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
}
- if (message.target !== FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN) {
- obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);
+ if (message.targets?.length) {
+ obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));
+ }
+ if (message.editionDefaults?.length) {
+ obj.editionDefaults = message.editionDefaults.map((e) => FieldOptions_EditionDefault.toJSON(e));
+ }
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
}
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
@@ -3910,18 +4812,99 @@ export const FieldOptions = {
message.weak = object.weak ?? false;
message.debugRedact = object.debugRedact ?? false;
message.retention = object.retention ?? FieldOptions_OptionRetention.RETENTION_UNKNOWN;
- message.target = object.target ?? FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN;
+ message.targets = object.targets?.map((e) => e) || [];
+ message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || [];
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
+function createBaseFieldOptions_EditionDefault(): FieldOptions_EditionDefault {
+ return { edition: Edition.EDITION_UNKNOWN, value: "" };
+}
+
+export const FieldOptions_EditionDefault = {
+ encode(message: FieldOptions_EditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(24).int32(editionToNumber(message.edition));
+ }
+ if (message.value !== "") {
+ writer.uint32(18).string(message.value);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_EditionDefault {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFieldOptions_EditionDefault();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.edition = editionFromJSON(reader.int32());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.value = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FieldOptions_EditionDefault {
+ return {
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
+ };
+ },
+
+ toJSON(message: FieldOptions_EditionDefault): unknown {
+ const obj: any = {};
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ obj.edition = editionToJSON(message.edition);
+ }
+ if (message.value !== "") {
+ obj.value = message.value;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
+ return FieldOptions_EditionDefault.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
+ const message = createBaseFieldOptions_EditionDefault();
+ message.edition = object.edition ?? Edition.EDITION_UNKNOWN;
+ message.value = object.value ?? "";
+ return message;
+ },
+};
+
function createBaseOneofOptions(): OneofOptions {
- return { uninterpretedOption: [] };
+ return { features: undefined, uninterpretedOption: [] };
}
export const OneofOptions = {
encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3935,6 +4918,13 @@ export const OneofOptions = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -3953,6 +4943,7 @@ export const OneofOptions = {
fromJSON(object: any): OneofOptions {
return {
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -3961,6 +4952,9 @@ export const OneofOptions = {
toJSON(message: OneofOptions): unknown {
const obj: any = {};
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -3972,13 +4966,22 @@ export const OneofOptions = {
},
fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {
const message = createBaseOneofOptions();
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseEnumOptions(): EnumOptions {
- return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };
+ return {
+ allowAlias: false,
+ deprecated: false,
+ deprecatedLegacyJsonFieldConflicts: false,
+ features: undefined,
+ uninterpretedOption: [],
+ };
}
export const EnumOptions = {
@@ -3992,6 +4995,9 @@ export const EnumOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4026,6 +5032,13 @@ export const EnumOptions = {
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -4049,6 +5062,7 @@ export const EnumOptions = {
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
: false,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4066,6 +5080,9 @@ export const EnumOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4080,13 +5097,16 @@ export const EnumOptions = {
message.allowAlias = object.allowAlias ?? false;
message.deprecated = object.deprecated ?? false;
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseEnumValueOptions(): EnumValueOptions {
- return { deprecated: false, uninterpretedOption: [] };
+ return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };
}
export const EnumValueOptions = {
@@ -4094,6 +5114,12 @@ export const EnumValueOptions = {
if (message.deprecated === true) {
writer.uint32(8).bool(message.deprecated);
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.debugRedact === true) {
+ writer.uint32(24).bool(message.debugRedact);
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4114,6 +5140,20 @@ export const EnumValueOptions = {
message.deprecated = reader.bool();
continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.debugRedact = reader.bool();
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -4133,6 +5173,8 @@ export const EnumValueOptions = {
fromJSON(object: any): EnumValueOptions {
return {
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4144,6 +5186,12 @@ export const EnumValueOptions = {
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ if (message.debugRedact === true) {
+ obj.debugRedact = message.debugRedact;
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4156,17 +5204,24 @@ export const EnumValueOptions = {
fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {
const message = createBaseEnumValueOptions();
message.deprecated = object.deprecated ?? false;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
+ message.debugRedact = object.debugRedact ?? false;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseServiceOptions(): ServiceOptions {
- return { deprecated: false, uninterpretedOption: [] };
+ return { features: undefined, deprecated: false, uninterpretedOption: [] };
}
export const ServiceOptions = {
encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();
+ }
if (message.deprecated === true) {
writer.uint32(264).bool(message.deprecated);
}
@@ -4183,6 +5238,13 @@ export const ServiceOptions = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
+ case 34:
+ if (tag !== 274) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 33:
if (tag !== 264) {
break;
@@ -4208,6 +5270,7 @@ export const ServiceOptions = {
fromJSON(object: any): ServiceOptions {
return {
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
@@ -4217,6 +5280,9 @@ export const ServiceOptions = {
toJSON(message: ServiceOptions): unknown {
const obj: any = {};
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
@@ -4231,6 +5297,9 @@ export const ServiceOptions = {
},
fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {
const message = createBaseServiceOptions();
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.deprecated = object.deprecated ?? false;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
@@ -4241,6 +5310,7 @@ function createBaseMethodOptions(): MethodOptions {
return {
deprecated: false,
idempotencyLevel: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
+ features: undefined,
uninterpretedOption: [],
};
}
@@ -4253,6 +5323,9 @@ export const MethodOptions = {
if (message.idempotencyLevel !== MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN) {
writer.uint32(272).int32(methodOptions_IdempotencyLevelToNumber(message.idempotencyLevel));
}
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();
+ }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4280,6 +5353,13 @@ export const MethodOptions = {
message.idempotencyLevel = methodOptions_IdempotencyLevelFromJSON(reader.int32());
continue;
+ case 35:
+ if (tag !== 282) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
case 999:
if (tag !== 7994) {
break;
@@ -4302,6 +5382,7 @@ export const MethodOptions = {
idempotencyLevel: isSet(object.idempotencyLevel)
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4316,6 +5397,9 @@ export const MethodOptions = {
if (message.idempotencyLevel !== MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN) {
obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);
}
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4329,6 +5413,9 @@ export const MethodOptions = {
const message = createBaseMethodOptions();
message.deprecated = object.deprecated ?? false;
message.idempotencyLevel = object.idempotencyLevel ?? MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -4571,6 +5658,329 @@ export const UninterpretedOption_NamePart = {
},
};
+function createBaseFeatureSet(): FeatureSet {
+ return {
+ fieldPresence: FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN,
+ enumType: FeatureSet_EnumType.ENUM_TYPE_UNKNOWN,
+ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN,
+ utf8Validation: FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN,
+ messageEncoding: FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN,
+ jsonFormat: FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN,
+ };
+}
+
+export const FeatureSet = {
+ encode(message: FeatureSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.fieldPresence !== FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN) {
+ writer.uint32(8).int32(featureSet_FieldPresenceToNumber(message.fieldPresence));
+ }
+ if (message.enumType !== FeatureSet_EnumType.ENUM_TYPE_UNKNOWN) {
+ writer.uint32(16).int32(featureSet_EnumTypeToNumber(message.enumType));
+ }
+ if (message.repeatedFieldEncoding !== FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN) {
+ writer.uint32(24).int32(featureSet_RepeatedFieldEncodingToNumber(message.repeatedFieldEncoding));
+ }
+ if (message.utf8Validation !== FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN) {
+ writer.uint32(32).int32(featureSet_Utf8ValidationToNumber(message.utf8Validation));
+ }
+ if (message.messageEncoding !== FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN) {
+ writer.uint32(40).int32(featureSet_MessageEncodingToNumber(message.messageEncoding));
+ }
+ if (message.jsonFormat !== FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN) {
+ writer.uint32(48).int32(featureSet_JsonFormatToNumber(message.jsonFormat));
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSet {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSet();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.fieldPresence = featureSet_FieldPresenceFromJSON(reader.int32());
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.enumType = featureSet_EnumTypeFromJSON(reader.int32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingFromJSON(reader.int32());
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.utf8Validation = featureSet_Utf8ValidationFromJSON(reader.int32());
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.messageEncoding = featureSet_MessageEncodingFromJSON(reader.int32());
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.jsonFormat = featureSet_JsonFormatFromJSON(reader.int32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSet {
+ return {
+ fieldPresence: isSet(object.fieldPresence)
+ ? featureSet_FieldPresenceFromJSON(object.fieldPresence)
+ : FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN,
+ enumType: isSet(object.enumType)
+ ? featureSet_EnumTypeFromJSON(object.enumType)
+ : FeatureSet_EnumType.ENUM_TYPE_UNKNOWN,
+ repeatedFieldEncoding: isSet(object.repeatedFieldEncoding)
+ ? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)
+ : FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN,
+ utf8Validation: isSet(object.utf8Validation)
+ ? featureSet_Utf8ValidationFromJSON(object.utf8Validation)
+ : FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN,
+ messageEncoding: isSet(object.messageEncoding)
+ ? featureSet_MessageEncodingFromJSON(object.messageEncoding)
+ : FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN,
+ jsonFormat: isSet(object.jsonFormat)
+ ? featureSet_JsonFormatFromJSON(object.jsonFormat)
+ : FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN,
+ };
+ },
+
+ toJSON(message: FeatureSet): unknown {
+ const obj: any = {};
+ if (message.fieldPresence !== FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN) {
+ obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence);
+ }
+ if (message.enumType !== FeatureSet_EnumType.ENUM_TYPE_UNKNOWN) {
+ obj.enumType = featureSet_EnumTypeToJSON(message.enumType);
+ }
+ if (message.repeatedFieldEncoding !== FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN) {
+ obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding);
+ }
+ if (message.utf8Validation !== FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN) {
+ obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation);
+ }
+ if (message.messageEncoding !== FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN) {
+ obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding);
+ }
+ if (message.jsonFormat !== FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN) {
+ obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSet>): FeatureSet {
+ return FeatureSet.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FeatureSet>): FeatureSet {
+ const message = createBaseFeatureSet();
+ message.fieldPresence = object.fieldPresence ?? FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
+ message.enumType = object.enumType ?? FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
+ message.repeatedFieldEncoding = object.repeatedFieldEncoding ??
+ FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
+ message.utf8Validation = object.utf8Validation ?? FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
+ message.messageEncoding = object.messageEncoding ?? FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
+ message.jsonFormat = object.jsonFormat ?? FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
+ return message;
+ },
+};
+
+function createBaseFeatureSetDefaults(): FeatureSetDefaults {
+ return { defaults: [], minimumEdition: Edition.EDITION_UNKNOWN, maximumEdition: Edition.EDITION_UNKNOWN };
+}
+
+export const FeatureSetDefaults = {
+ encode(message: FeatureSetDefaults, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.defaults) {
+ FeatureSetDefaults_FeatureSetEditionDefault.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.minimumEdition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(32).int32(editionToNumber(message.minimumEdition));
+ }
+ if (message.maximumEdition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(40).int32(editionToNumber(message.maximumEdition));
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSetDefaults();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.minimumEdition = editionFromJSON(reader.int32());
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.maximumEdition = editionFromJSON(reader.int32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSetDefaults {
+ return {
+ defaults: globalThis.Array.isArray(object?.defaults)
+ ? object.defaults.map((e: any) => FeatureSetDefaults_FeatureSetEditionDefault.fromJSON(e))
+ : [],
+ minimumEdition: isSet(object.minimumEdition) ? editionFromJSON(object.minimumEdition) : Edition.EDITION_UNKNOWN,
+ maximumEdition: isSet(object.maximumEdition) ? editionFromJSON(object.maximumEdition) : Edition.EDITION_UNKNOWN,
+ };
+ },
+
+ toJSON(message: FeatureSetDefaults): unknown {
+ const obj: any = {};
+ if (message.defaults?.length) {
+ obj.defaults = message.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e));
+ }
+ if (message.minimumEdition !== Edition.EDITION_UNKNOWN) {
+ obj.minimumEdition = editionToJSON(message.minimumEdition);
+ }
+ if (message.maximumEdition !== Edition.EDITION_UNKNOWN) {
+ obj.maximumEdition = editionToJSON(message.maximumEdition);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {
+ return FeatureSetDefaults.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {
+ const message = createBaseFeatureSetDefaults();
+ message.defaults = object.defaults?.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];
+ message.minimumEdition = object.minimumEdition ?? Edition.EDITION_UNKNOWN;
+ message.maximumEdition = object.maximumEdition ?? Edition.EDITION_UNKNOWN;
+ return message;
+ },
+};
+
+function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {
+ return { edition: Edition.EDITION_UNKNOWN, features: undefined };
+}
+
+export const FeatureSetDefaults_FeatureSetEditionDefault = {
+ encode(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ writer.uint32(24).int32(editionToNumber(message.edition));
+ }
+ if (message.features !== undefined) {
+ FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults_FeatureSetEditionDefault {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.edition = editionFromJSON(reader.int32());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.features = FeatureSet.decode(reader, reader.uint32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {
+ return {
+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,
+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ };
+ },
+
+ toJSON(message: FeatureSetDefaults_FeatureSetEditionDefault): unknown {
+ const obj: any = {};
+ if (message.edition !== Edition.EDITION_UNKNOWN) {
+ obj.edition = editionToJSON(message.edition);
+ }
+ if (message.features !== undefined) {
+ obj.features = FeatureSet.toJSON(message.features);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>): FeatureSetDefaults_FeatureSetEditionDefault {
+ return FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(base ?? {});
+ },
+ fromPartial(
+ object: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>,
+ ): FeatureSetDefaults_FeatureSetEditionDefault {
+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
+ message.edition = object.edition ?? Edition.EDITION_UNKNOWN;
+ message.features = (object.features !== undefined && object.features !== null)
+ ? FeatureSet.fromPartial(object.features)
+ : undefined;
+ return message;
+ },
+};
+
function createBaseSourceCodeInfo(): SourceCodeInfo {
return { location: [] };
}
diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.ts
index 31ff603438..da35159e1f 100644
--- a/frontend/src/types/proto/google/protobuf/struct.ts
+++ b/frontend/src/types/proto/google/protobuf/struct.ts
@@ -8,7 +8,7 @@ export const protobufPackage = "google.protobuf";
* `NullValue` is a singleton enumeration to represent the null value for the
* `Value` type union.
*
- * The JSON representation for `NullValue` is JSON `null`.
+ * The JSON representation for `NullValue` is JSON `null`.
*/
export enum NullValue {
/** NULL_VALUE - Null value. */
diff --git a/frontend/src/types/proto/google/protobuf/timestamp.ts b/frontend/src/types/proto/google/protobuf/timestamp.ts
index 51695e08d0..5781891bc0 100644
--- a/frontend/src/types/proto/google/protobuf/timestamp.ts
+++ b/frontend/src/types/proto/google/protobuf/timestamp.ts
@@ -92,7 +92,7 @@ export const protobufPackage = "google.protobuf";
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
- * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
+ * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
* ) to obtain a formatter capable of generating timestamps in this format.
*/
export interface Timestamp {
diff --git a/frontend/src/types/proto/store/branch.ts b/frontend/src/types/proto/store/branch.ts
index b1e23b6acd..d7f02dfd7d 100644
--- a/frontend/src/types/proto/store/branch.ts
+++ b/frontend/src/types/proto/store/branch.ts
@@ -1,7 +1,9 @@
/* eslint-disable */
import Long from "long";
import _m0 from "protobufjs/minimal";
-import { DatabaseConfig, DatabaseSchemaMetadata } from "./database";
+import { Timestamp } from "../google/protobuf/timestamp";
+import { StringValue } from "../google/protobuf/wrappers";
+import { DatabaseConfig, DatabaseSchemaMetadata, ExtensionMetadata } from "./database";
export const protobufPackage = "bytebase.store";
@@ -25,6 +27,633 @@ export interface BranchConfig {
sourceBranch: string;
}
+/** BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch. */
+export interface BranchDatabaseSchemaMetadata {
+ name: string;
+ /** The schemas is the list of schemas in a database. */
+ schemas: BranchSchemaMetadata[];
+ /** The character_set is the character set of a database. */
+ characterSet: string;
+ /** The collation is the collation of a database. */
+ collation: string;
+ /** The extensions is the list of extensions in a database. */
+ extensions: ExtensionMetadata[];
+ /** The database belongs to a datashare. */
+ datashare: boolean;
+ /** The service name of the database. It's the Oracle specific concept. */
+ serviceName: string;
+}
+
+/**
+ * BranchSchemaMetadata is the metadata for schemas used in branch.
+ * This is the concept of schema in Postgres, but it's a no-op for MySQL.
+ */
+export interface BranchSchemaMetadata {
+ /**
+ * The name is the schema name.
+ * It is an empty string for databases without such concept such as MySQL.
+ */
+ name: string;
+ /** The tables is the list of tables in a schema. */
+ tables: BranchTableMetadata[];
+ /** The external_tables is the list of external tables in a schema. */
+ externalTables: BranchExternalTableMetadata[];
+ /** The views is the list of views in a schema. */
+ views: BranchViewMetadata[];
+ /** The functions is the list of functions in a schema. */
+ functions: BranchFunctionMetadata[];
+ /** The procedures is the list of procedures in a schema. */
+ procedures: BranchProcedureMetadata[];
+ /** The streams is the list of streams in a schema, currently, only used for Snowflake. */
+ streams: BranchStreamMetadata[];
+ /** The routines is the list of routines in a schema, currently, only used for Snowflake. */
+ tasks: BranchTaskMetadata[];
+ /** The materialized_views is the list of materialized views in a schema. */
+ materializedViews: BranchMaterializedViewMetadata[];
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+export interface BranchTaskMetadata {
+ /** The name is the name of a task. */
+ name: string;
+ /**
+ * The id is the snowflake-generated id of a task.
+ * Example: 01ad32a0-1bb6-5e93-0000-000000000001
+ */
+ id: string;
+ /** The owner of the task. */
+ owner: string;
+ /** The comment of the task. */
+ comment: string;
+ /** The warehouse of the task. */
+ warehouse: string;
+ /** The schedule interval of the task. */
+ schedule: string;
+ /** The predecessor tasks of the task. */
+ predecessors: string[];
+ /** The state of the task. */
+ state: BranchTaskMetadata_State;
+ /** The condition of the task. */
+ condition: string;
+ /** The definition of the task. */
+ definition: string;
+}
+
+export enum BranchTaskMetadata_State {
+ STATE_UNSPECIFIED = "STATE_UNSPECIFIED",
+ STATE_STARTED = "STATE_STARTED",
+ STATE_SUSPENDED = "STATE_SUSPENDED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function branchTaskMetadata_StateFromJSON(object: any): BranchTaskMetadata_State {
+ switch (object) {
+ case 0:
+ case "STATE_UNSPECIFIED":
+ return BranchTaskMetadata_State.STATE_UNSPECIFIED;
+ case 1:
+ case "STATE_STARTED":
+ return BranchTaskMetadata_State.STATE_STARTED;
+ case 2:
+ case "STATE_SUSPENDED":
+ return BranchTaskMetadata_State.STATE_SUSPENDED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return BranchTaskMetadata_State.UNRECOGNIZED;
+ }
+}
+
+export function branchTaskMetadata_StateToJSON(object: BranchTaskMetadata_State): string {
+ switch (object) {
+ case BranchTaskMetadata_State.STATE_UNSPECIFIED:
+ return "STATE_UNSPECIFIED";
+ case BranchTaskMetadata_State.STATE_STARTED:
+ return "STATE_STARTED";
+ case BranchTaskMetadata_State.STATE_SUSPENDED:
+ return "STATE_SUSPENDED";
+ case BranchTaskMetadata_State.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function branchTaskMetadata_StateToNumber(object: BranchTaskMetadata_State): number {
+ switch (object) {
+ case BranchTaskMetadata_State.STATE_UNSPECIFIED:
+ return 0;
+ case BranchTaskMetadata_State.STATE_STARTED:
+ return 1;
+ case BranchTaskMetadata_State.STATE_SUSPENDED:
+ return 2;
+ case BranchTaskMetadata_State.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export interface BranchStreamMetadata {
+ /** The name is the name of a stream. */
+ name: string;
+ /** The table_name is the name of the table/view that the stream is created on. */
+ tableName: string;
+ /** The owner of the stream. */
+ owner: string;
+ /** The comment of the stream. */
+ comment: string;
+ /** The type of the stream. */
+ type: BranchStreamMetadata_Type;
+ /** Indicates whether the stream was last read before the `stale_after` time. */
+ stale: boolean;
+ /** The mode of the stream. */
+ mode: BranchStreamMetadata_Mode;
+ /** The definition of the stream. */
+ definition: string;
+}
+
+export enum BranchStreamMetadata_Type {
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
+ TYPE_DELTA = "TYPE_DELTA",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function branchStreamMetadata_TypeFromJSON(object: any): BranchStreamMetadata_Type {
+ switch (object) {
+ case 0:
+ case "TYPE_UNSPECIFIED":
+ return BranchStreamMetadata_Type.TYPE_UNSPECIFIED;
+ case 1:
+ case "TYPE_DELTA":
+ return BranchStreamMetadata_Type.TYPE_DELTA;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return BranchStreamMetadata_Type.UNRECOGNIZED;
+ }
+}
+
+export function branchStreamMetadata_TypeToJSON(object: BranchStreamMetadata_Type): string {
+ switch (object) {
+ case BranchStreamMetadata_Type.TYPE_UNSPECIFIED:
+ return "TYPE_UNSPECIFIED";
+ case BranchStreamMetadata_Type.TYPE_DELTA:
+ return "TYPE_DELTA";
+ case BranchStreamMetadata_Type.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function branchStreamMetadata_TypeToNumber(object: BranchStreamMetadata_Type): number {
+ switch (object) {
+ case BranchStreamMetadata_Type.TYPE_UNSPECIFIED:
+ return 0;
+ case BranchStreamMetadata_Type.TYPE_DELTA:
+ return 1;
+ case BranchStreamMetadata_Type.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum BranchStreamMetadata_Mode {
+ MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
+ MODE_DEFAULT = "MODE_DEFAULT",
+ MODE_APPEND_ONLY = "MODE_APPEND_ONLY",
+ MODE_INSERT_ONLY = "MODE_INSERT_ONLY",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function branchStreamMetadata_ModeFromJSON(object: any): BranchStreamMetadata_Mode {
+ switch (object) {
+ case 0:
+ case "MODE_UNSPECIFIED":
+ return BranchStreamMetadata_Mode.MODE_UNSPECIFIED;
+ case 1:
+ case "MODE_DEFAULT":
+ return BranchStreamMetadata_Mode.MODE_DEFAULT;
+ case 2:
+ case "MODE_APPEND_ONLY":
+ return BranchStreamMetadata_Mode.MODE_APPEND_ONLY;
+ case 3:
+ case "MODE_INSERT_ONLY":
+ return BranchStreamMetadata_Mode.MODE_INSERT_ONLY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return BranchStreamMetadata_Mode.UNRECOGNIZED;
+ }
+}
+
+export function branchStreamMetadata_ModeToJSON(object: BranchStreamMetadata_Mode): string {
+ switch (object) {
+ case BranchStreamMetadata_Mode.MODE_UNSPECIFIED:
+ return "MODE_UNSPECIFIED";
+ case BranchStreamMetadata_Mode.MODE_DEFAULT:
+ return "MODE_DEFAULT";
+ case BranchStreamMetadata_Mode.MODE_APPEND_ONLY:
+ return "MODE_APPEND_ONLY";
+ case BranchStreamMetadata_Mode.MODE_INSERT_ONLY:
+ return "MODE_INSERT_ONLY";
+ case BranchStreamMetadata_Mode.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function branchStreamMetadata_ModeToNumber(object: BranchStreamMetadata_Mode): number {
+ switch (object) {
+ case BranchStreamMetadata_Mode.MODE_UNSPECIFIED:
+ return 0;
+ case BranchStreamMetadata_Mode.MODE_DEFAULT:
+ return 1;
+ case BranchStreamMetadata_Mode.MODE_APPEND_ONLY:
+ return 2;
+ case BranchStreamMetadata_Mode.MODE_INSERT_ONLY:
+ return 3;
+ case BranchStreamMetadata_Mode.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+/** BranchTableMetadata is the metadata for tables used in branch. */
+export interface BranchTableMetadata {
+ /** The name is the name of a table. */
+ name: string;
+ /** The columns is the ordered list of columns in a table. */
+ columns: BranchColumnMetadata[];
+ /** The indexes is the list of indexes in a table. */
+ indexes: BranchIndexMetadata[];
+ /** The engine is the engine of a table. */
+ engine: string;
+ /** The collation is the collation of a table. */
+ collation: string;
+ /** The row_count is the estimated number of rows of a table. */
+ rowCount: Long;
+ /** The data_size is the estimated data size of a table. */
+ dataSize: Long;
+ /** The index_size is the estimated index size of a table. */
+ indexSize: Long;
+ /** The data_free is the estimated free data size of a table. */
+ dataFree: Long;
+ /** The create_options is the create option of a table. */
+ createOptions: string;
+ /**
+ * The comment is the comment of a table.
+ * classification and user_comment is parsed from the comment.
+ */
+ comment: string;
+ /** The classification is the classification of a table parsed from the comment. */
+ classification: string;
+ /** The user_comment is the user comment of a table parsed from the comment. */
+ userComment: string;
+ /** The foreign_keys is the list of foreign keys in a table. */
+ foreignKeys: BranchForeignKeyMetadata[];
+ /** The partitions is the list of partitions in a table. */
+ partitions: BranchTablePartitionMetadata[];
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+export interface BranchExternalTableMetadata {
+ /** The name is the name of a external table. */
+ name: string;
+ /** The external_server_name is the name of the external server. */
+ externalServerName: string;
+ /** The external_database_name is the name of the external database. */
+ externalDatabaseName: string;
+ /** The columns is the ordered list of columns in a foreign table. */
+ columns: BranchColumnMetadata[];
+}
+
+/** BranchTablePartitionMetadata is the metadata for table partitions used in branch. */
+export interface BranchTablePartitionMetadata {
+ /** The name is the name of a table partition. */
+ name: string;
+ /** The type of a table partition. */
+ type: BranchTablePartitionMetadata_Type;
+ /**
+ * The expression is the expression of a table partition.
+ * For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.
+ * For MySQL, the expression is the `expr` or `column_list` of the following syntax.
+ * PARTITION BY
+ * { [LINEAR] HASH(expr)
+ * | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ * | RANGE{(expr) | COLUMNS(column_list)}
+ * | LIST{(expr) | COLUMNS(column_list)} }.
+ */
+ expression: string;
+ /**
+ * The value is the value of a table partition.
+ * For MySQL, the value is for RANGE and LIST partition types,
+ * - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+ * - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values.
+ * - For others, it's an empty string.
+ */
+ value: string;
+ /**
+ * The use_default is whether the users use the default partition, it stores the different value for different database engines.
+ * For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}.
+ */
+ useDefault: string;
+ /** The subpartitions is the list of subpartitions in a table partition. */
+ subpartitions: BranchTablePartitionMetadata[];
+}
+
+/**
+ * Type is the type of a table partition, some database engines may not support all types.
+ * Only avilable for the following database engines now:
+ * MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)
+ * TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY
+ * PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+ */
+export enum BranchTablePartitionMetadata_Type {
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
+ RANGE = "RANGE",
+ RANGE_COLUMNS = "RANGE_COLUMNS",
+ LIST = "LIST",
+ LIST_COLUMNS = "LIST_COLUMNS",
+ HASH = "HASH",
+ LINEAR_HASH = "LINEAR_HASH",
+ KEY = "KEY",
+ LINEAR_KEY = "LINEAR_KEY",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function branchTablePartitionMetadata_TypeFromJSON(object: any): BranchTablePartitionMetadata_Type {
+ switch (object) {
+ case 0:
+ case "TYPE_UNSPECIFIED":
+ return BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED;
+ case 1:
+ case "RANGE":
+ return BranchTablePartitionMetadata_Type.RANGE;
+ case 2:
+ case "RANGE_COLUMNS":
+ return BranchTablePartitionMetadata_Type.RANGE_COLUMNS;
+ case 3:
+ case "LIST":
+ return BranchTablePartitionMetadata_Type.LIST;
+ case 4:
+ case "LIST_COLUMNS":
+ return BranchTablePartitionMetadata_Type.LIST_COLUMNS;
+ case 5:
+ case "HASH":
+ return BranchTablePartitionMetadata_Type.HASH;
+ case 6:
+ case "LINEAR_HASH":
+ return BranchTablePartitionMetadata_Type.LINEAR_HASH;
+ case 7:
+ case "KEY":
+ return BranchTablePartitionMetadata_Type.KEY;
+ case 8:
+ case "LINEAR_KEY":
+ return BranchTablePartitionMetadata_Type.LINEAR_KEY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return BranchTablePartitionMetadata_Type.UNRECOGNIZED;
+ }
+}
+
+export function branchTablePartitionMetadata_TypeToJSON(object: BranchTablePartitionMetadata_Type): string {
+ switch (object) {
+ case BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED:
+ return "TYPE_UNSPECIFIED";
+ case BranchTablePartitionMetadata_Type.RANGE:
+ return "RANGE";
+ case BranchTablePartitionMetadata_Type.RANGE_COLUMNS:
+ return "RANGE_COLUMNS";
+ case BranchTablePartitionMetadata_Type.LIST:
+ return "LIST";
+ case BranchTablePartitionMetadata_Type.LIST_COLUMNS:
+ return "LIST_COLUMNS";
+ case BranchTablePartitionMetadata_Type.HASH:
+ return "HASH";
+ case BranchTablePartitionMetadata_Type.LINEAR_HASH:
+ return "LINEAR_HASH";
+ case BranchTablePartitionMetadata_Type.KEY:
+ return "KEY";
+ case BranchTablePartitionMetadata_Type.LINEAR_KEY:
+ return "LINEAR_KEY";
+ case BranchTablePartitionMetadata_Type.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function branchTablePartitionMetadata_TypeToNumber(object: BranchTablePartitionMetadata_Type): number {
+ switch (object) {
+ case BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED:
+ return 0;
+ case BranchTablePartitionMetadata_Type.RANGE:
+ return 1;
+ case BranchTablePartitionMetadata_Type.RANGE_COLUMNS:
+ return 2;
+ case BranchTablePartitionMetadata_Type.LIST:
+ return 3;
+ case BranchTablePartitionMetadata_Type.LIST_COLUMNS:
+ return 4;
+ case BranchTablePartitionMetadata_Type.HASH:
+ return 5;
+ case BranchTablePartitionMetadata_Type.LINEAR_HASH:
+ return 6;
+ case BranchTablePartitionMetadata_Type.KEY:
+ return 7;
+ case BranchTablePartitionMetadata_Type.LINEAR_KEY:
+ return 8;
+ case BranchTablePartitionMetadata_Type.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+/** BranchColumnMetadata is the metadata for columns used in branch. */
+export interface BranchColumnMetadata {
+ /** The name is the name of a column. */
+ name: string;
+ /** The position is the position in columns. */
+ position: number;
+ /** The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. */
+ default?: string | undefined;
+ defaultNull?: boolean | undefined;
+ defaultExpression?:
+ | string
+ | undefined;
+ /**
+ * The on_update is the on update action of a column.
+ * For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value.
+ */
+ onUpdate: string;
+ /** The nullable is the nullable of a column. */
+ nullable: boolean;
+ /** The type is the type of a column. */
+ type: string;
+ /** The character_set is the character_set of a column. */
+ characterSet: string;
+ /** The collation is the collation of a column. */
+ collation: string;
+ /**
+ * The comment is the comment of a column.
+ * classification and user_comment is parsed from the comment.
+ */
+ comment: string;
+ /** The classification is the classification of a table parsed from the comment. */
+ classification: string;
+ /** The user_comment is the user comment of a table parsed from the comment. */
+ userComment: string;
+}
+
+/** BranchViewMetadata is the metadata for views used in branch. */
+export interface BranchViewMetadata {
+ /** The name is the name of a view. */
+ name: string;
+ /** The definition is the definition of a view. */
+ definition: string;
+ /** The comment is the comment of a view. */
+ comment: string;
+ /** The dependent_columns is the list of dependent columns of a view. */
+ dependentColumns: BranchDependentColumn[];
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+/** BranchDependentColumn is the metadata for dependent columns used in branch. */
+export interface BranchDependentColumn {
+ /** The schema is the schema of a reference column. */
+ schema: string;
+ /** The table is the table of a reference column. */
+ table: string;
+ /** The column is the name of a reference column. */
+ column: string;
+}
+
+/** BranchMaterializedViewMetadata is the metadata for materialized views used in branch. */
+export interface BranchMaterializedViewMetadata {
+ /** The name is the name of a view. */
+ name: string;
+ /** The definition is the definition of a view. */
+ definition: string;
+ /** The comment is the comment of a view. */
+ comment: string;
+ /** The dependent_columns is the list of dependent columns of a view. */
+ dependentColumns: BranchDependentColumn[];
+}
+
+/** BranchFunctionMetadata is the metadata for functions used in branch. */
+export interface BranchFunctionMetadata {
+ /** The name is the name of a function. */
+ name: string;
+ /** The definition is the definition of a function. */
+ definition: string;
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+/** BranchProcedureMetadata is the metadata for procedures used in branch. */
+export interface BranchProcedureMetadata {
+ /** The name is the name of a procedure. */
+ name: string;
+ /** The definition is the definition of a procedure. */
+ definition: string;
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+/** BranchIndexMetadata is the metadata for indexes used in branch. */
+export interface BranchIndexMetadata {
+ /** The name is the name of an index. */
+ name: string;
+ /**
+ * The expressions are the ordered columns or expressions of an index.
+ * This could refer to a column or an expression.
+ */
+ expressions: string[];
+ /**
+ * The key_lengths are the ordered key lengths of an index.
+ * If the key length is not specified, it's -1.
+ */
+ keyLength: Long[];
+ /** The type is the type of an index. */
+ type: string;
+ /** The unique is whether the index is unique. */
+ unique: boolean;
+ /** The primary is whether the index is a primary key index. */
+ primary: boolean;
+ /** The visible is whether the index is visible. */
+ visible: boolean;
+ /** The comment is the comment of an index. */
+ comment: string;
+ /** The definition of an index. */
+ definition: string;
+}
+
+/** BranchExtensionMetadata is the metadata for extensions used in branch. */
+export interface BranchExtensionMetadata {
+ /** The name is the name of an extension. */
+ name: string;
+ /** The schema is the extension that is installed to. But the extension usage is not limited to the schema. */
+ schema: string;
+ /** The version is the version of an extension. */
+ version: string;
+ /** The description is the description of an extension. */
+ description: string;
+}
+
+/** BranchForeignKeyMetadata is the metadata for foreign keys used in branch. */
+export interface BranchForeignKeyMetadata {
+ /** The name is the name of a foreign key. */
+ name: string;
+ /** The columns are the ordered referencing columns of a foreign key. */
+ columns: string[];
+ /**
+ * The referenced_schema is the referenced schema name of a foreign key.
+ * It is an empty string for databases without such concept such as MySQL.
+ */
+ referencedSchema: string;
+ /** The referenced_table is the referenced table name of a foreign key. */
+ referencedTable: string;
+ /** The referenced_columns are the ordered referenced columns of a foreign key. */
+ referencedColumns: string[];
+ /** The on_delete is the on delete action of a foreign key. */
+ onDelete: string;
+ /** The on_update is the on update action of a foreign key. */
+ onUpdate: string;
+ /**
+ * The match_type is the match type of a foreign key.
+ * The match_type is the PostgreSQL specific field.
+ * It's empty string for other databases.
+ */
+ matchType: string;
+}
+
function createBaseBranchSnapshot(): BranchSnapshot {
return { metadata: undefined, databaseConfig: undefined };
}
@@ -177,13 +806,2674 @@ export const BranchConfig = {
},
};
-type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
+function createBaseBranchDatabaseSchemaMetadata(): BranchDatabaseSchemaMetadata {
+ return { name: "", schemas: [], characterSet: "", collation: "", extensions: [], datashare: false, serviceName: "" };
+}
-export type DeepPartial<T> = T extends Builtin ? T
- : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
- : Partial<T>;
+export const BranchDatabaseSchemaMetadata = {
+ encode(message: BranchDatabaseSchemaMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.schemas) {
+ BranchSchemaMetadata.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.characterSet !== "") {
+ writer.uint32(26).string(message.characterSet);
+ }
+ if (message.collation !== "") {
+ writer.uint32(34).string(message.collation);
+ }
+ for (const v of message.extensions) {
+ ExtensionMetadata.encode(v!, writer.uint32(42).fork()).ldelim();
+ }
+ if (message.datashare === true) {
+ writer.uint32(48).bool(message.datashare);
+ }
+ if (message.serviceName !== "") {
+ writer.uint32(58).string(message.serviceName);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchDatabaseSchemaMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchDatabaseSchemaMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.schemas.push(BranchSchemaMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.characterSet = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.collation = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.extensions.push(ExtensionMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.datashare = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.serviceName = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchDatabaseSchemaMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ schemas: globalThis.Array.isArray(object?.schemas)
+ ? object.schemas.map((e: any) => BranchSchemaMetadata.fromJSON(e))
+ : [],
+ characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",
+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",
+ extensions: globalThis.Array.isArray(object?.extensions)
+ ? object.extensions.map((e: any) => ExtensionMetadata.fromJSON(e))
+ : [],
+ datashare: isSet(object.datashare) ? globalThis.Boolean(object.datashare) : false,
+ serviceName: isSet(object.serviceName) ? globalThis.String(object.serviceName) : "",
+ };
+ },
+
+ toJSON(message: BranchDatabaseSchemaMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.schemas?.length) {
+ obj.schemas = message.schemas.map((e) => BranchSchemaMetadata.toJSON(e));
+ }
+ if (message.characterSet !== "") {
+ obj.characterSet = message.characterSet;
+ }
+ if (message.collation !== "") {
+ obj.collation = message.collation;
+ }
+ if (message.extensions?.length) {
+ obj.extensions = message.extensions.map((e) => ExtensionMetadata.toJSON(e));
+ }
+ if (message.datashare === true) {
+ obj.datashare = message.datashare;
+ }
+ if (message.serviceName !== "") {
+ obj.serviceName = message.serviceName;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchDatabaseSchemaMetadata>): BranchDatabaseSchemaMetadata {
+ return BranchDatabaseSchemaMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchDatabaseSchemaMetadata>): BranchDatabaseSchemaMetadata {
+ const message = createBaseBranchDatabaseSchemaMetadata();
+ message.name = object.name ?? "";
+ message.schemas = object.schemas?.map((e) => BranchSchemaMetadata.fromPartial(e)) || [];
+ message.characterSet = object.characterSet ?? "";
+ message.collation = object.collation ?? "";
+ message.extensions = object.extensions?.map((e) => ExtensionMetadata.fromPartial(e)) || [];
+ message.datashare = object.datashare ?? false;
+ message.serviceName = object.serviceName ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchSchemaMetadata(): BranchSchemaMetadata {
+ return {
+ name: "",
+ tables: [],
+ externalTables: [],
+ views: [],
+ functions: [],
+ procedures: [],
+ streams: [],
+ tasks: [],
+ materializedViews: [],
+ updater: "",
+ updateTime: undefined,
+ };
+}
+
+export const BranchSchemaMetadata = {
+ encode(message: BranchSchemaMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.tables) {
+ BranchTableMetadata.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ for (const v of message.externalTables) {
+ BranchExternalTableMetadata.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ for (const v of message.views) {
+ BranchViewMetadata.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ for (const v of message.functions) {
+ BranchFunctionMetadata.encode(v!, writer.uint32(42).fork()).ldelim();
+ }
+ for (const v of message.procedures) {
+ BranchProcedureMetadata.encode(v!, writer.uint32(50).fork()).ldelim();
+ }
+ for (const v of message.streams) {
+ BranchStreamMetadata.encode(v!, writer.uint32(58).fork()).ldelim();
+ }
+ for (const v of message.tasks) {
+ BranchTaskMetadata.encode(v!, writer.uint32(66).fork()).ldelim();
+ }
+ for (const v of message.materializedViews) {
+ BranchMaterializedViewMetadata.encode(v!, writer.uint32(74).fork()).ldelim();
+ }
+ if (message.updater !== "") {
+ writer.uint32(82).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(90).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchSchemaMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchSchemaMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.tables.push(BranchTableMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.externalTables.push(BranchExternalTableMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.views.push(BranchViewMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.functions.push(BranchFunctionMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.procedures.push(BranchProcedureMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.streams.push(BranchStreamMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.tasks.push(BranchTaskMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.materializedViews.push(BranchMaterializedViewMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchSchemaMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ tables: globalThis.Array.isArray(object?.tables)
+ ? object.tables.map((e: any) => BranchTableMetadata.fromJSON(e))
+ : [],
+ externalTables: globalThis.Array.isArray(object?.externalTables)
+ ? object.externalTables.map((e: any) => BranchExternalTableMetadata.fromJSON(e))
+ : [],
+ views: globalThis.Array.isArray(object?.views)
+ ? object.views.map((e: any) => BranchViewMetadata.fromJSON(e))
+ : [],
+ functions: globalThis.Array.isArray(object?.functions)
+ ? object.functions.map((e: any) => BranchFunctionMetadata.fromJSON(e))
+ : [],
+ procedures: globalThis.Array.isArray(object?.procedures)
+ ? object.procedures.map((e: any) => BranchProcedureMetadata.fromJSON(e))
+ : [],
+ streams: globalThis.Array.isArray(object?.streams)
+ ? object.streams.map((e: any) => BranchStreamMetadata.fromJSON(e))
+ : [],
+ tasks: globalThis.Array.isArray(object?.tasks)
+ ? object.tasks.map((e: any) => BranchTaskMetadata.fromJSON(e))
+ : [],
+ materializedViews: globalThis.Array.isArray(object?.materializedViews)
+ ? object.materializedViews.map((e: any) => BranchMaterializedViewMetadata.fromJSON(e))
+ : [],
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchSchemaMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.tables?.length) {
+ obj.tables = message.tables.map((e) => BranchTableMetadata.toJSON(e));
+ }
+ if (message.externalTables?.length) {
+ obj.externalTables = message.externalTables.map((e) => BranchExternalTableMetadata.toJSON(e));
+ }
+ if (message.views?.length) {
+ obj.views = message.views.map((e) => BranchViewMetadata.toJSON(e));
+ }
+ if (message.functions?.length) {
+ obj.functions = message.functions.map((e) => BranchFunctionMetadata.toJSON(e));
+ }
+ if (message.procedures?.length) {
+ obj.procedures = message.procedures.map((e) => BranchProcedureMetadata.toJSON(e));
+ }
+ if (message.streams?.length) {
+ obj.streams = message.streams.map((e) => BranchStreamMetadata.toJSON(e));
+ }
+ if (message.tasks?.length) {
+ obj.tasks = message.tasks.map((e) => BranchTaskMetadata.toJSON(e));
+ }
+ if (message.materializedViews?.length) {
+ obj.materializedViews = message.materializedViews.map((e) => BranchMaterializedViewMetadata.toJSON(e));
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchSchemaMetadata>): BranchSchemaMetadata {
+ return BranchSchemaMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchSchemaMetadata>): BranchSchemaMetadata {
+ const message = createBaseBranchSchemaMetadata();
+ message.name = object.name ?? "";
+ message.tables = object.tables?.map((e) => BranchTableMetadata.fromPartial(e)) || [];
+ message.externalTables = object.externalTables?.map((e) => BranchExternalTableMetadata.fromPartial(e)) || [];
+ message.views = object.views?.map((e) => BranchViewMetadata.fromPartial(e)) || [];
+ message.functions = object.functions?.map((e) => BranchFunctionMetadata.fromPartial(e)) || [];
+ message.procedures = object.procedures?.map((e) => BranchProcedureMetadata.fromPartial(e)) || [];
+ message.streams = object.streams?.map((e) => BranchStreamMetadata.fromPartial(e)) || [];
+ message.tasks = object.tasks?.map((e) => BranchTaskMetadata.fromPartial(e)) || [];
+ message.materializedViews = object.materializedViews?.map((e) => BranchMaterializedViewMetadata.fromPartial(e)) ||
+ [];
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchTaskMetadata(): BranchTaskMetadata {
+ return {
+ name: "",
+ id: "",
+ owner: "",
+ comment: "",
+ warehouse: "",
+ schedule: "",
+ predecessors: [],
+ state: BranchTaskMetadata_State.STATE_UNSPECIFIED,
+ condition: "",
+ definition: "",
+ };
+}
+
+export const BranchTaskMetadata = {
+ encode(message: BranchTaskMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.id !== "") {
+ writer.uint32(18).string(message.id);
+ }
+ if (message.owner !== "") {
+ writer.uint32(26).string(message.owner);
+ }
+ if (message.comment !== "") {
+ writer.uint32(34).string(message.comment);
+ }
+ if (message.warehouse !== "") {
+ writer.uint32(42).string(message.warehouse);
+ }
+ if (message.schedule !== "") {
+ writer.uint32(50).string(message.schedule);
+ }
+ for (const v of message.predecessors) {
+ writer.uint32(58).string(v!);
+ }
+ if (message.state !== BranchTaskMetadata_State.STATE_UNSPECIFIED) {
+ writer.uint32(64).int32(branchTaskMetadata_StateToNumber(message.state));
+ }
+ if (message.condition !== "") {
+ writer.uint32(74).string(message.condition);
+ }
+ if (message.definition !== "") {
+ writer.uint32(82).string(message.definition);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchTaskMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchTaskMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.id = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.owner = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.warehouse = reader.string();
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.schedule = reader.string();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.predecessors.push(reader.string());
+ continue;
+ case 8:
+ if (tag !== 64) {
+ break;
+ }
+
+ message.state = branchTaskMetadata_StateFromJSON(reader.int32());
+ continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.condition = reader.string();
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchTaskMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ warehouse: isSet(object.warehouse) ? globalThis.String(object.warehouse) : "",
+ schedule: isSet(object.schedule) ? globalThis.String(object.schedule) : "",
+ predecessors: globalThis.Array.isArray(object?.predecessors)
+ ? object.predecessors.map((e: any) => globalThis.String(e))
+ : [],
+ state: isSet(object.state)
+ ? branchTaskMetadata_StateFromJSON(object.state)
+ : BranchTaskMetadata_State.STATE_UNSPECIFIED,
+ condition: isSet(object.condition) ? globalThis.String(object.condition) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ };
+ },
+
+ toJSON(message: BranchTaskMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.id !== "") {
+ obj.id = message.id;
+ }
+ if (message.owner !== "") {
+ obj.owner = message.owner;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.warehouse !== "") {
+ obj.warehouse = message.warehouse;
+ }
+ if (message.schedule !== "") {
+ obj.schedule = message.schedule;
+ }
+ if (message.predecessors?.length) {
+ obj.predecessors = message.predecessors;
+ }
+ if (message.state !== BranchTaskMetadata_State.STATE_UNSPECIFIED) {
+ obj.state = branchTaskMetadata_StateToJSON(message.state);
+ }
+ if (message.condition !== "") {
+ obj.condition = message.condition;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchTaskMetadata>): BranchTaskMetadata {
+ return BranchTaskMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchTaskMetadata>): BranchTaskMetadata {
+ const message = createBaseBranchTaskMetadata();
+ message.name = object.name ?? "";
+ message.id = object.id ?? "";
+ message.owner = object.owner ?? "";
+ message.comment = object.comment ?? "";
+ message.warehouse = object.warehouse ?? "";
+ message.schedule = object.schedule ?? "";
+ message.predecessors = object.predecessors?.map((e) => e) || [];
+ message.state = object.state ?? BranchTaskMetadata_State.STATE_UNSPECIFIED;
+ message.condition = object.condition ?? "";
+ message.definition = object.definition ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchStreamMetadata(): BranchStreamMetadata {
+ return {
+ name: "",
+ tableName: "",
+ owner: "",
+ comment: "",
+ type: BranchStreamMetadata_Type.TYPE_UNSPECIFIED,
+ stale: false,
+ mode: BranchStreamMetadata_Mode.MODE_UNSPECIFIED,
+ definition: "",
+ };
+}
+
+export const BranchStreamMetadata = {
+ encode(message: BranchStreamMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.tableName !== "") {
+ writer.uint32(18).string(message.tableName);
+ }
+ if (message.owner !== "") {
+ writer.uint32(26).string(message.owner);
+ }
+ if (message.comment !== "") {
+ writer.uint32(34).string(message.comment);
+ }
+ if (message.type !== BranchStreamMetadata_Type.TYPE_UNSPECIFIED) {
+ writer.uint32(40).int32(branchStreamMetadata_TypeToNumber(message.type));
+ }
+ if (message.stale === true) {
+ writer.uint32(48).bool(message.stale);
+ }
+ if (message.mode !== BranchStreamMetadata_Mode.MODE_UNSPECIFIED) {
+ writer.uint32(56).int32(branchStreamMetadata_ModeToNumber(message.mode));
+ }
+ if (message.definition !== "") {
+ writer.uint32(66).string(message.definition);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchStreamMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchStreamMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.tableName = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.owner = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.type = branchStreamMetadata_TypeFromJSON(reader.int32());
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.stale = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 56) {
+ break;
+ }
+
+ message.mode = branchStreamMetadata_ModeFromJSON(reader.int32());
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchStreamMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ tableName: isSet(object.tableName) ? globalThis.String(object.tableName) : "",
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ type: isSet(object.type)
+ ? branchStreamMetadata_TypeFromJSON(object.type)
+ : BranchStreamMetadata_Type.TYPE_UNSPECIFIED,
+ stale: isSet(object.stale) ? globalThis.Boolean(object.stale) : false,
+ mode: isSet(object.mode)
+ ? branchStreamMetadata_ModeFromJSON(object.mode)
+ : BranchStreamMetadata_Mode.MODE_UNSPECIFIED,
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ };
+ },
+
+ toJSON(message: BranchStreamMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.tableName !== "") {
+ obj.tableName = message.tableName;
+ }
+ if (message.owner !== "") {
+ obj.owner = message.owner;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.type !== BranchStreamMetadata_Type.TYPE_UNSPECIFIED) {
+ obj.type = branchStreamMetadata_TypeToJSON(message.type);
+ }
+ if (message.stale === true) {
+ obj.stale = message.stale;
+ }
+ if (message.mode !== BranchStreamMetadata_Mode.MODE_UNSPECIFIED) {
+ obj.mode = branchStreamMetadata_ModeToJSON(message.mode);
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchStreamMetadata>): BranchStreamMetadata {
+ return BranchStreamMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchStreamMetadata>): BranchStreamMetadata {
+ const message = createBaseBranchStreamMetadata();
+ message.name = object.name ?? "";
+ message.tableName = object.tableName ?? "";
+ message.owner = object.owner ?? "";
+ message.comment = object.comment ?? "";
+ message.type = object.type ?? BranchStreamMetadata_Type.TYPE_UNSPECIFIED;
+ message.stale = object.stale ?? false;
+ message.mode = object.mode ?? BranchStreamMetadata_Mode.MODE_UNSPECIFIED;
+ message.definition = object.definition ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchTableMetadata(): BranchTableMetadata {
+ return {
+ name: "",
+ columns: [],
+ indexes: [],
+ engine: "",
+ collation: "",
+ rowCount: Long.ZERO,
+ dataSize: Long.ZERO,
+ indexSize: Long.ZERO,
+ dataFree: Long.ZERO,
+ createOptions: "",
+ comment: "",
+ classification: "",
+ userComment: "",
+ foreignKeys: [],
+ partitions: [],
+ updater: "",
+ updateTime: undefined,
+ };
+}
+
+export const BranchTableMetadata = {
+ encode(message: BranchTableMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.columns) {
+ BranchColumnMetadata.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ for (const v of message.indexes) {
+ BranchIndexMetadata.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ if (message.engine !== "") {
+ writer.uint32(34).string(message.engine);
+ }
+ if (message.collation !== "") {
+ writer.uint32(42).string(message.collation);
+ }
+ if (!message.rowCount.isZero()) {
+ writer.uint32(48).int64(message.rowCount);
+ }
+ if (!message.dataSize.isZero()) {
+ writer.uint32(56).int64(message.dataSize);
+ }
+ if (!message.indexSize.isZero()) {
+ writer.uint32(64).int64(message.indexSize);
+ }
+ if (!message.dataFree.isZero()) {
+ writer.uint32(72).int64(message.dataFree);
+ }
+ if (message.createOptions !== "") {
+ writer.uint32(82).string(message.createOptions);
+ }
+ if (message.comment !== "") {
+ writer.uint32(90).string(message.comment);
+ }
+ if (message.classification !== "") {
+ writer.uint32(106).string(message.classification);
+ }
+ if (message.userComment !== "") {
+ writer.uint32(114).string(message.userComment);
+ }
+ for (const v of message.foreignKeys) {
+ BranchForeignKeyMetadata.encode(v!, writer.uint32(98).fork()).ldelim();
+ }
+ for (const v of message.partitions) {
+ BranchTablePartitionMetadata.encode(v!, writer.uint32(122).fork()).ldelim();
+ }
+ if (message.updater !== "") {
+ writer.uint32(130).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(138).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchTableMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchTableMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.columns.push(BranchColumnMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.indexes.push(BranchIndexMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.engine = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.collation = reader.string();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.rowCount = reader.int64() as Long;
+ continue;
+ case 7:
+ if (tag !== 56) {
+ break;
+ }
+
+ message.dataSize = reader.int64() as Long;
+ continue;
+ case 8:
+ if (tag !== 64) {
+ break;
+ }
+
+ message.indexSize = reader.int64() as Long;
+ continue;
+ case 9:
+ if (tag !== 72) {
+ break;
+ }
+
+ message.dataFree = reader.int64() as Long;
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.createOptions = reader.string();
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 13:
+ if (tag !== 106) {
+ break;
+ }
+
+ message.classification = reader.string();
+ continue;
+ case 14:
+ if (tag !== 114) {
+ break;
+ }
+
+ message.userComment = reader.string();
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.foreignKeys.push(BranchForeignKeyMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 15:
+ if (tag !== 122) {
+ break;
+ }
+
+ message.partitions.push(BranchTablePartitionMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 16:
+ if (tag !== 130) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 17:
+ if (tag !== 138) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchTableMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ columns: globalThis.Array.isArray(object?.columns)
+ ? object.columns.map((e: any) => BranchColumnMetadata.fromJSON(e))
+ : [],
+ indexes: globalThis.Array.isArray(object?.indexes)
+ ? object.indexes.map((e: any) => BranchIndexMetadata.fromJSON(e))
+ : [],
+ engine: isSet(object.engine) ? globalThis.String(object.engine) : "",
+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",
+ rowCount: isSet(object.rowCount) ? Long.fromValue(object.rowCount) : Long.ZERO,
+ dataSize: isSet(object.dataSize) ? Long.fromValue(object.dataSize) : Long.ZERO,
+ indexSize: isSet(object.indexSize) ? Long.fromValue(object.indexSize) : Long.ZERO,
+ dataFree: isSet(object.dataFree) ? Long.fromValue(object.dataFree) : Long.ZERO,
+ createOptions: isSet(object.createOptions) ? globalThis.String(object.createOptions) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",
+ userComment: isSet(object.userComment) ? globalThis.String(object.userComment) : "",
+ foreignKeys: globalThis.Array.isArray(object?.foreignKeys)
+ ? object.foreignKeys.map((e: any) => BranchForeignKeyMetadata.fromJSON(e))
+ : [],
+ partitions: globalThis.Array.isArray(object?.partitions)
+ ? object.partitions.map((e: any) => BranchTablePartitionMetadata.fromJSON(e))
+ : [],
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchTableMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.columns?.length) {
+ obj.columns = message.columns.map((e) => BranchColumnMetadata.toJSON(e));
+ }
+ if (message.indexes?.length) {
+ obj.indexes = message.indexes.map((e) => BranchIndexMetadata.toJSON(e));
+ }
+ if (message.engine !== "") {
+ obj.engine = message.engine;
+ }
+ if (message.collation !== "") {
+ obj.collation = message.collation;
+ }
+ if (!message.rowCount.isZero()) {
+ obj.rowCount = (message.rowCount || Long.ZERO).toString();
+ }
+ if (!message.dataSize.isZero()) {
+ obj.dataSize = (message.dataSize || Long.ZERO).toString();
+ }
+ if (!message.indexSize.isZero()) {
+ obj.indexSize = (message.indexSize || Long.ZERO).toString();
+ }
+ if (!message.dataFree.isZero()) {
+ obj.dataFree = (message.dataFree || Long.ZERO).toString();
+ }
+ if (message.createOptions !== "") {
+ obj.createOptions = message.createOptions;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.classification !== "") {
+ obj.classification = message.classification;
+ }
+ if (message.userComment !== "") {
+ obj.userComment = message.userComment;
+ }
+ if (message.foreignKeys?.length) {
+ obj.foreignKeys = message.foreignKeys.map((e) => BranchForeignKeyMetadata.toJSON(e));
+ }
+ if (message.partitions?.length) {
+ obj.partitions = message.partitions.map((e) => BranchTablePartitionMetadata.toJSON(e));
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchTableMetadata>): BranchTableMetadata {
+ return BranchTableMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchTableMetadata>): BranchTableMetadata {
+ const message = createBaseBranchTableMetadata();
+ message.name = object.name ?? "";
+ message.columns = object.columns?.map((e) => BranchColumnMetadata.fromPartial(e)) || [];
+ message.indexes = object.indexes?.map((e) => BranchIndexMetadata.fromPartial(e)) || [];
+ message.engine = object.engine ?? "";
+ message.collation = object.collation ?? "";
+ message.rowCount = (object.rowCount !== undefined && object.rowCount !== null)
+ ? Long.fromValue(object.rowCount)
+ : Long.ZERO;
+ message.dataSize = (object.dataSize !== undefined && object.dataSize !== null)
+ ? Long.fromValue(object.dataSize)
+ : Long.ZERO;
+ message.indexSize = (object.indexSize !== undefined && object.indexSize !== null)
+ ? Long.fromValue(object.indexSize)
+ : Long.ZERO;
+ message.dataFree = (object.dataFree !== undefined && object.dataFree !== null)
+ ? Long.fromValue(object.dataFree)
+ : Long.ZERO;
+ message.createOptions = object.createOptions ?? "";
+ message.comment = object.comment ?? "";
+ message.classification = object.classification ?? "";
+ message.userComment = object.userComment ?? "";
+ message.foreignKeys = object.foreignKeys?.map((e) => BranchForeignKeyMetadata.fromPartial(e)) || [];
+ message.partitions = object.partitions?.map((e) => BranchTablePartitionMetadata.fromPartial(e)) || [];
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchExternalTableMetadata(): BranchExternalTableMetadata {
+ return { name: "", externalServerName: "", externalDatabaseName: "", columns: [] };
+}
+
+export const BranchExternalTableMetadata = {
+ encode(message: BranchExternalTableMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.externalServerName !== "") {
+ writer.uint32(18).string(message.externalServerName);
+ }
+ if (message.externalDatabaseName !== "") {
+ writer.uint32(26).string(message.externalDatabaseName);
+ }
+ for (const v of message.columns) {
+ BranchColumnMetadata.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchExternalTableMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchExternalTableMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.externalServerName = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.externalDatabaseName = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.columns.push(BranchColumnMetadata.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchExternalTableMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ externalServerName: isSet(object.externalServerName) ? globalThis.String(object.externalServerName) : "",
+ externalDatabaseName: isSet(object.externalDatabaseName) ? globalThis.String(object.externalDatabaseName) : "",
+ columns: globalThis.Array.isArray(object?.columns)
+ ? object.columns.map((e: any) => BranchColumnMetadata.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: BranchExternalTableMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.externalServerName !== "") {
+ obj.externalServerName = message.externalServerName;
+ }
+ if (message.externalDatabaseName !== "") {
+ obj.externalDatabaseName = message.externalDatabaseName;
+ }
+ if (message.columns?.length) {
+ obj.columns = message.columns.map((e) => BranchColumnMetadata.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchExternalTableMetadata>): BranchExternalTableMetadata {
+ return BranchExternalTableMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchExternalTableMetadata>): BranchExternalTableMetadata {
+ const message = createBaseBranchExternalTableMetadata();
+ message.name = object.name ?? "";
+ message.externalServerName = object.externalServerName ?? "";
+ message.externalDatabaseName = object.externalDatabaseName ?? "";
+ message.columns = object.columns?.map((e) => BranchColumnMetadata.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseBranchTablePartitionMetadata(): BranchTablePartitionMetadata {
+ return {
+ name: "",
+ type: BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED,
+ expression: "",
+ value: "",
+ useDefault: "",
+ subpartitions: [],
+ };
+}
+
+export const BranchTablePartitionMetadata = {
+ encode(message: BranchTablePartitionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.type !== BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED) {
+ writer.uint32(16).int32(branchTablePartitionMetadata_TypeToNumber(message.type));
+ }
+ if (message.expression !== "") {
+ writer.uint32(26).string(message.expression);
+ }
+ if (message.value !== "") {
+ writer.uint32(34).string(message.value);
+ }
+ if (message.useDefault !== "") {
+ writer.uint32(42).string(message.useDefault);
+ }
+ for (const v of message.subpartitions) {
+ BranchTablePartitionMetadata.encode(v!, writer.uint32(50).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchTablePartitionMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchTablePartitionMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.type = branchTablePartitionMetadata_TypeFromJSON(reader.int32());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.expression = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.value = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.useDefault = reader.string();
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.subpartitions.push(BranchTablePartitionMetadata.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchTablePartitionMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ type: isSet(object.type)
+ ? branchTablePartitionMetadata_TypeFromJSON(object.type)
+ : BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED,
+ expression: isSet(object.expression) ? globalThis.String(object.expression) : "",
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
+ useDefault: isSet(object.useDefault) ? globalThis.String(object.useDefault) : "",
+ subpartitions: globalThis.Array.isArray(object?.subpartitions)
+ ? object.subpartitions.map((e: any) => BranchTablePartitionMetadata.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: BranchTablePartitionMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.type !== BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED) {
+ obj.type = branchTablePartitionMetadata_TypeToJSON(message.type);
+ }
+ if (message.expression !== "") {
+ obj.expression = message.expression;
+ }
+ if (message.value !== "") {
+ obj.value = message.value;
+ }
+ if (message.useDefault !== "") {
+ obj.useDefault = message.useDefault;
+ }
+ if (message.subpartitions?.length) {
+ obj.subpartitions = message.subpartitions.map((e) => BranchTablePartitionMetadata.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchTablePartitionMetadata>): BranchTablePartitionMetadata {
+ return BranchTablePartitionMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchTablePartitionMetadata>): BranchTablePartitionMetadata {
+ const message = createBaseBranchTablePartitionMetadata();
+ message.name = object.name ?? "";
+ message.type = object.type ?? BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED;
+ message.expression = object.expression ?? "";
+ message.value = object.value ?? "";
+ message.useDefault = object.useDefault ?? "";
+ message.subpartitions = object.subpartitions?.map((e) => BranchTablePartitionMetadata.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseBranchColumnMetadata(): BranchColumnMetadata {
+ return {
+ name: "",
+ position: 0,
+ default: undefined,
+ defaultNull: undefined,
+ defaultExpression: undefined,
+ onUpdate: "",
+ nullable: false,
+ type: "",
+ characterSet: "",
+ collation: "",
+ comment: "",
+ classification: "",
+ userComment: "",
+ };
+}
+
+export const BranchColumnMetadata = {
+ encode(message: BranchColumnMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.position !== 0) {
+ writer.uint32(16).int32(message.position);
+ }
+ if (message.default !== undefined) {
+ StringValue.encode({ value: message.default! }, writer.uint32(26).fork()).ldelim();
+ }
+ if (message.defaultNull !== undefined) {
+ writer.uint32(32).bool(message.defaultNull);
+ }
+ if (message.defaultExpression !== undefined) {
+ writer.uint32(42).string(message.defaultExpression);
+ }
+ if (message.onUpdate !== "") {
+ writer.uint32(106).string(message.onUpdate);
+ }
+ if (message.nullable === true) {
+ writer.uint32(48).bool(message.nullable);
+ }
+ if (message.type !== "") {
+ writer.uint32(58).string(message.type);
+ }
+ if (message.characterSet !== "") {
+ writer.uint32(66).string(message.characterSet);
+ }
+ if (message.collation !== "") {
+ writer.uint32(74).string(message.collation);
+ }
+ if (message.comment !== "") {
+ writer.uint32(82).string(message.comment);
+ }
+ if (message.classification !== "") {
+ writer.uint32(90).string(message.classification);
+ }
+ if (message.userComment !== "") {
+ writer.uint32(98).string(message.userComment);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchColumnMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchColumnMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.position = reader.int32();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.default = StringValue.decode(reader, reader.uint32()).value;
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.defaultNull = reader.bool();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.defaultExpression = reader.string();
+ continue;
+ case 13:
+ if (tag !== 106) {
+ break;
+ }
+
+ message.onUpdate = reader.string();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.nullable = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.type = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.characterSet = reader.string();
+ continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.collation = reader.string();
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.classification = reader.string();
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.userComment = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchColumnMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ position: isSet(object.position) ? globalThis.Number(object.position) : 0,
+ default: isSet(object.default) ? String(object.default) : undefined,
+ defaultNull: isSet(object.defaultNull) ? globalThis.Boolean(object.defaultNull) : undefined,
+ defaultExpression: isSet(object.defaultExpression) ? globalThis.String(object.defaultExpression) : undefined,
+ onUpdate: isSet(object.onUpdate) ? globalThis.String(object.onUpdate) : "",
+ nullable: isSet(object.nullable) ? globalThis.Boolean(object.nullable) : false,
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
+ characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",
+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",
+ userComment: isSet(object.userComment) ? globalThis.String(object.userComment) : "",
+ };
+ },
+
+ toJSON(message: BranchColumnMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.position !== 0) {
+ obj.position = Math.round(message.position);
+ }
+ if (message.default !== undefined) {
+ obj.default = message.default;
+ }
+ if (message.defaultNull !== undefined) {
+ obj.defaultNull = message.defaultNull;
+ }
+ if (message.defaultExpression !== undefined) {
+ obj.defaultExpression = message.defaultExpression;
+ }
+ if (message.onUpdate !== "") {
+ obj.onUpdate = message.onUpdate;
+ }
+ if (message.nullable === true) {
+ obj.nullable = message.nullable;
+ }
+ if (message.type !== "") {
+ obj.type = message.type;
+ }
+ if (message.characterSet !== "") {
+ obj.characterSet = message.characterSet;
+ }
+ if (message.collation !== "") {
+ obj.collation = message.collation;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.classification !== "") {
+ obj.classification = message.classification;
+ }
+ if (message.userComment !== "") {
+ obj.userComment = message.userComment;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchColumnMetadata>): BranchColumnMetadata {
+ return BranchColumnMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchColumnMetadata>): BranchColumnMetadata {
+ const message = createBaseBranchColumnMetadata();
+ message.name = object.name ?? "";
+ message.position = object.position ?? 0;
+ message.default = object.default ?? undefined;
+ message.defaultNull = object.defaultNull ?? undefined;
+ message.defaultExpression = object.defaultExpression ?? undefined;
+ message.onUpdate = object.onUpdate ?? "";
+ message.nullable = object.nullable ?? false;
+ message.type = object.type ?? "";
+ message.characterSet = object.characterSet ?? "";
+ message.collation = object.collation ?? "";
+ message.comment = object.comment ?? "";
+ message.classification = object.classification ?? "";
+ message.userComment = object.userComment ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchViewMetadata(): BranchViewMetadata {
+ return { name: "", definition: "", comment: "", dependentColumns: [], updater: "", updateTime: undefined };
+}
+
+export const BranchViewMetadata = {
+ encode(message: BranchViewMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.definition !== "") {
+ writer.uint32(18).string(message.definition);
+ }
+ if (message.comment !== "") {
+ writer.uint32(26).string(message.comment);
+ }
+ for (const v of message.dependentColumns) {
+ BranchDependentColumn.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ if (message.updater !== "") {
+ writer.uint32(42).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(50).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchViewMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchViewMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.dependentColumns.push(BranchDependentColumn.decode(reader, reader.uint32()));
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchViewMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ dependentColumns: globalThis.Array.isArray(object?.dependentColumns)
+ ? object.dependentColumns.map((e: any) => BranchDependentColumn.fromJSON(e))
+ : [],
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchViewMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.dependentColumns?.length) {
+ obj.dependentColumns = message.dependentColumns.map((e) => BranchDependentColumn.toJSON(e));
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchViewMetadata>): BranchViewMetadata {
+ return BranchViewMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchViewMetadata>): BranchViewMetadata {
+ const message = createBaseBranchViewMetadata();
+ message.name = object.name ?? "";
+ message.definition = object.definition ?? "";
+ message.comment = object.comment ?? "";
+ message.dependentColumns = object.dependentColumns?.map((e) => BranchDependentColumn.fromPartial(e)) || [];
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchDependentColumn(): BranchDependentColumn {
+ return { schema: "", table: "", column: "" };
+}
+
+export const BranchDependentColumn = {
+ encode(message: BranchDependentColumn, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.schema !== "") {
+ writer.uint32(10).string(message.schema);
+ }
+ if (message.table !== "") {
+ writer.uint32(18).string(message.table);
+ }
+ if (message.column !== "") {
+ writer.uint32(26).string(message.column);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchDependentColumn {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchDependentColumn();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.schema = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.table = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.column = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchDependentColumn {
+ return {
+ schema: isSet(object.schema) ? globalThis.String(object.schema) : "",
+ table: isSet(object.table) ? globalThis.String(object.table) : "",
+ column: isSet(object.column) ? globalThis.String(object.column) : "",
+ };
+ },
+
+ toJSON(message: BranchDependentColumn): unknown {
+ const obj: any = {};
+ if (message.schema !== "") {
+ obj.schema = message.schema;
+ }
+ if (message.table !== "") {
+ obj.table = message.table;
+ }
+ if (message.column !== "") {
+ obj.column = message.column;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchDependentColumn>): BranchDependentColumn {
+ return BranchDependentColumn.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchDependentColumn>): BranchDependentColumn {
+ const message = createBaseBranchDependentColumn();
+ message.schema = object.schema ?? "";
+ message.table = object.table ?? "";
+ message.column = object.column ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchMaterializedViewMetadata(): BranchMaterializedViewMetadata {
+ return { name: "", definition: "", comment: "", dependentColumns: [] };
+}
+
+export const BranchMaterializedViewMetadata = {
+ encode(message: BranchMaterializedViewMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.definition !== "") {
+ writer.uint32(18).string(message.definition);
+ }
+ if (message.comment !== "") {
+ writer.uint32(26).string(message.comment);
+ }
+ for (const v of message.dependentColumns) {
+ BranchDependentColumn.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchMaterializedViewMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchMaterializedViewMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.dependentColumns.push(BranchDependentColumn.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchMaterializedViewMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ dependentColumns: globalThis.Array.isArray(object?.dependentColumns)
+ ? object.dependentColumns.map((e: any) => BranchDependentColumn.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: BranchMaterializedViewMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.dependentColumns?.length) {
+ obj.dependentColumns = message.dependentColumns.map((e) => BranchDependentColumn.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchMaterializedViewMetadata>): BranchMaterializedViewMetadata {
+ return BranchMaterializedViewMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchMaterializedViewMetadata>): BranchMaterializedViewMetadata {
+ const message = createBaseBranchMaterializedViewMetadata();
+ message.name = object.name ?? "";
+ message.definition = object.definition ?? "";
+ message.comment = object.comment ?? "";
+ message.dependentColumns = object.dependentColumns?.map((e) => BranchDependentColumn.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseBranchFunctionMetadata(): BranchFunctionMetadata {
+ return { name: "", definition: "", updater: "", updateTime: undefined };
+}
+
+export const BranchFunctionMetadata = {
+ encode(message: BranchFunctionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.definition !== "") {
+ writer.uint32(18).string(message.definition);
+ }
+ if (message.updater !== "") {
+ writer.uint32(26).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchFunctionMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchFunctionMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchFunctionMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchFunctionMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchFunctionMetadata>): BranchFunctionMetadata {
+ return BranchFunctionMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchFunctionMetadata>): BranchFunctionMetadata {
+ const message = createBaseBranchFunctionMetadata();
+ message.name = object.name ?? "";
+ message.definition = object.definition ?? "";
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchProcedureMetadata(): BranchProcedureMetadata {
+ return { name: "", definition: "", updater: "", updateTime: undefined };
+}
+
+export const BranchProcedureMetadata = {
+ encode(message: BranchProcedureMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.definition !== "") {
+ writer.uint32(18).string(message.definition);
+ }
+ if (message.updater !== "") {
+ writer.uint32(26).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchProcedureMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchProcedureMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchProcedureMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchProcedureMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchProcedureMetadata>): BranchProcedureMetadata {
+ return BranchProcedureMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchProcedureMetadata>): BranchProcedureMetadata {
+ const message = createBaseBranchProcedureMetadata();
+ message.name = object.name ?? "";
+ message.definition = object.definition ?? "";
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchIndexMetadata(): BranchIndexMetadata {
+ return {
+ name: "",
+ expressions: [],
+ keyLength: [],
+ type: "",
+ unique: false,
+ primary: false,
+ visible: false,
+ comment: "",
+ definition: "",
+ };
+}
+
+export const BranchIndexMetadata = {
+ encode(message: BranchIndexMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.expressions) {
+ writer.uint32(18).string(v!);
+ }
+ writer.uint32(74).fork();
+ for (const v of message.keyLength) {
+ writer.int64(v);
+ }
+ writer.ldelim();
+ if (message.type !== "") {
+ writer.uint32(26).string(message.type);
+ }
+ if (message.unique === true) {
+ writer.uint32(32).bool(message.unique);
+ }
+ if (message.primary === true) {
+ writer.uint32(40).bool(message.primary);
+ }
+ if (message.visible === true) {
+ writer.uint32(48).bool(message.visible);
+ }
+ if (message.comment !== "") {
+ writer.uint32(58).string(message.comment);
+ }
+ if (message.definition !== "") {
+ writer.uint32(66).string(message.definition);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchIndexMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchIndexMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.expressions.push(reader.string());
+ continue;
+ case 9:
+ if (tag === 72) {
+ message.keyLength.push(reader.int64() as Long);
+
+ continue;
+ }
+
+ if (tag === 74) {
+ const end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2) {
+ message.keyLength.push(reader.int64() as Long);
+ }
+
+ continue;
+ }
+
+ break;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.type = reader.string();
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.unique = reader.bool();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.primary = reader.bool();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.visible = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchIndexMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ expressions: globalThis.Array.isArray(object?.expressions)
+ ? object.expressions.map((e: any) => globalThis.String(e))
+ : [],
+ keyLength: globalThis.Array.isArray(object?.keyLength) ? object.keyLength.map((e: any) => Long.fromValue(e)) : [],
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
+ unique: isSet(object.unique) ? globalThis.Boolean(object.unique) : false,
+ primary: isSet(object.primary) ? globalThis.Boolean(object.primary) : false,
+ visible: isSet(object.visible) ? globalThis.Boolean(object.visible) : false,
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ };
+ },
+
+ toJSON(message: BranchIndexMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.expressions?.length) {
+ obj.expressions = message.expressions;
+ }
+ if (message.keyLength?.length) {
+ obj.keyLength = message.keyLength.map((e) => (e || Long.ZERO).toString());
+ }
+ if (message.type !== "") {
+ obj.type = message.type;
+ }
+ if (message.unique === true) {
+ obj.unique = message.unique;
+ }
+ if (message.primary === true) {
+ obj.primary = message.primary;
+ }
+ if (message.visible === true) {
+ obj.visible = message.visible;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchIndexMetadata>): BranchIndexMetadata {
+ return BranchIndexMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchIndexMetadata>): BranchIndexMetadata {
+ const message = createBaseBranchIndexMetadata();
+ message.name = object.name ?? "";
+ message.expressions = object.expressions?.map((e) => e) || [];
+ message.keyLength = object.keyLength?.map((e) => Long.fromValue(e)) || [];
+ message.type = object.type ?? "";
+ message.unique = object.unique ?? false;
+ message.primary = object.primary ?? false;
+ message.visible = object.visible ?? false;
+ message.comment = object.comment ?? "";
+ message.definition = object.definition ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchExtensionMetadata(): BranchExtensionMetadata {
+ return { name: "", schema: "", version: "", description: "" };
+}
+
+export const BranchExtensionMetadata = {
+ encode(message: BranchExtensionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.schema !== "") {
+ writer.uint32(18).string(message.schema);
+ }
+ if (message.version !== "") {
+ writer.uint32(26).string(message.version);
+ }
+ if (message.description !== "") {
+ writer.uint32(34).string(message.description);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchExtensionMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchExtensionMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.schema = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.version = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.description = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchExtensionMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ schema: isSet(object.schema) ? globalThis.String(object.schema) : "",
+ version: isSet(object.version) ? globalThis.String(object.version) : "",
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
+ };
+ },
+
+ toJSON(message: BranchExtensionMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.schema !== "") {
+ obj.schema = message.schema;
+ }
+ if (message.version !== "") {
+ obj.version = message.version;
+ }
+ if (message.description !== "") {
+ obj.description = message.description;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchExtensionMetadata>): BranchExtensionMetadata {
+ return BranchExtensionMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchExtensionMetadata>): BranchExtensionMetadata {
+ const message = createBaseBranchExtensionMetadata();
+ message.name = object.name ?? "";
+ message.schema = object.schema ?? "";
+ message.version = object.version ?? "";
+ message.description = object.description ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchForeignKeyMetadata(): BranchForeignKeyMetadata {
+ return {
+ name: "",
+ columns: [],
+ referencedSchema: "",
+ referencedTable: "",
+ referencedColumns: [],
+ onDelete: "",
+ onUpdate: "",
+ matchType: "",
+ };
+}
+
+export const BranchForeignKeyMetadata = {
+ encode(message: BranchForeignKeyMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.columns) {
+ writer.uint32(18).string(v!);
+ }
+ if (message.referencedSchema !== "") {
+ writer.uint32(26).string(message.referencedSchema);
+ }
+ if (message.referencedTable !== "") {
+ writer.uint32(34).string(message.referencedTable);
+ }
+ for (const v of message.referencedColumns) {
+ writer.uint32(42).string(v!);
+ }
+ if (message.onDelete !== "") {
+ writer.uint32(50).string(message.onDelete);
+ }
+ if (message.onUpdate !== "") {
+ writer.uint32(58).string(message.onUpdate);
+ }
+ if (message.matchType !== "") {
+ writer.uint32(66).string(message.matchType);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchForeignKeyMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchForeignKeyMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.columns.push(reader.string());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.referencedSchema = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.referencedTable = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.referencedColumns.push(reader.string());
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.onDelete = reader.string();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.onUpdate = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.matchType = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchForeignKeyMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ columns: globalThis.Array.isArray(object?.columns) ? object.columns.map((e: any) => globalThis.String(e)) : [],
+ referencedSchema: isSet(object.referencedSchema) ? globalThis.String(object.referencedSchema) : "",
+ referencedTable: isSet(object.referencedTable) ? globalThis.String(object.referencedTable) : "",
+ referencedColumns: globalThis.Array.isArray(object?.referencedColumns)
+ ? object.referencedColumns.map((e: any) => globalThis.String(e))
+ : [],
+ onDelete: isSet(object.onDelete) ? globalThis.String(object.onDelete) : "",
+ onUpdate: isSet(object.onUpdate) ? globalThis.String(object.onUpdate) : "",
+ matchType: isSet(object.matchType) ? globalThis.String(object.matchType) : "",
+ };
+ },
+
+ toJSON(message: BranchForeignKeyMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.columns?.length) {
+ obj.columns = message.columns;
+ }
+ if (message.referencedSchema !== "") {
+ obj.referencedSchema = message.referencedSchema;
+ }
+ if (message.referencedTable !== "") {
+ obj.referencedTable = message.referencedTable;
+ }
+ if (message.referencedColumns?.length) {
+ obj.referencedColumns = message.referencedColumns;
+ }
+ if (message.onDelete !== "") {
+ obj.onDelete = message.onDelete;
+ }
+ if (message.onUpdate !== "") {
+ obj.onUpdate = message.onUpdate;
+ }
+ if (message.matchType !== "") {
+ obj.matchType = message.matchType;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchForeignKeyMetadata>): BranchForeignKeyMetadata {
+ return BranchForeignKeyMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchForeignKeyMetadata>): BranchForeignKeyMetadata {
+ const message = createBaseBranchForeignKeyMetadata();
+ message.name = object.name ?? "";
+ message.columns = object.columns?.map((e) => e) || [];
+ message.referencedSchema = object.referencedSchema ?? "";
+ message.referencedTable = object.referencedTable ?? "";
+ message.referencedColumns = object.referencedColumns?.map((e) => e) || [];
+ message.onDelete = object.onDelete ?? "";
+ message.onUpdate = object.onUpdate ?? "";
+ message.matchType = object.matchType ?? "";
+ return message;
+ },
+};
+
+type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
+
+export type DeepPartial<T> = T extends Builtin ? T
+ : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
+ : Partial<T>;
+
+function toTimestamp(date: Date): Timestamp {
+ const seconds = numberToLong(date.getTime() / 1_000);
+ const nanos = (date.getTime() % 1_000) * 1_000_000;
+ return { seconds, nanos };
+}
+
+function fromTimestamp(t: Timestamp): Date {
+ let millis = (t.seconds.toNumber() || 0) * 1_000;
+ millis += (t.nanos || 0) / 1_000_000;
+ return new globalThis.Date(millis);
+}
+
+function fromJsonTimestamp(o: any): Date {
+ if (o instanceof globalThis.Date) {
+ return o;
+ } else if (typeof o === "string") {
+ return new globalThis.Date(o);
+ } else {
+ return fromTimestamp(Timestamp.fromJSON(o));
+ }
+}
+
+function numberToLong(number: number) {
+ return Long.fromNumber(number);
+}
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
diff --git a/frontend/src/types/proto/v1/branch_service.ts b/frontend/src/types/proto/v1/branch_service.ts
index 649cc2dae3..6631ebe4d1 100644
--- a/frontend/src/types/proto/v1/branch_service.ts
+++ b/frontend/src/types/proto/v1/branch_service.ts
@@ -4,8 +4,9 @@ import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { Timestamp } from "../google/protobuf/timestamp";
+import { StringValue } from "../google/protobuf/wrappers";
import { Engine, engineFromJSON, engineToJSON, engineToNumber } from "./common";
-import { DatabaseMetadata } from "./database_service";
+import { DatabaseMetadata, ExtensionMetadata } from "./database_service";
export const protobufPackage = "bytebase.v1";
@@ -333,6 +334,633 @@ export interface DiffMetadataResponse {
diff: string;
}
+/** BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch. */
+export interface BranchDatabaseSchemaMetadata {
+ name: string;
+ /** The schemas is the list of schemas in a database. */
+ schemas: BranchSchemaMetadata[];
+ /** The character_set is the character set of a database. */
+ characterSet: string;
+ /** The collation is the collation of a database. */
+ collation: string;
+ /** The extensions is the list of extensions in a database. */
+ extensions: ExtensionMetadata[];
+ /** The database belongs to a datashare. */
+ datashare: boolean;
+ /** The service name of the database. It's the Oracle specific concept. */
+ serviceName: string;
+}
+
+/**
+ * BranchSchemaMetadata is the metadata for schemas used in branch.
+ * This is the concept of schema in Postgres, but it's a no-op for MySQL.
+ */
+export interface BranchSchemaMetadata {
+ /**
+ * The name is the schema name.
+ * It is an empty string for databases without such concept such as MySQL.
+ */
+ name: string;
+ /** The tables is the list of tables in a schema. */
+ tables: BranchTableMetadata[];
+ /** The external_tables is the list of external tables in a schema. */
+ externalTables: BranchExternalTableMetadata[];
+ /** The views is the list of views in a schema. */
+ views: BranchViewMetadata[];
+ /** The functions is the list of functions in a schema. */
+ functions: BranchFunctionMetadata[];
+ /** The procedures is the list of procedures in a schema. */
+ procedures: BranchProcedureMetadata[];
+ /** The streams is the list of streams in a schema, currently, only used for Snowflake. */
+ streams: BranchStreamMetadata[];
+ /** The routines is the list of routines in a schema, currently, only used for Snowflake. */
+ tasks: BranchTaskMetadata[];
+ /** The materialized_views is the list of materialized views in a schema. */
+ materializedViews: BranchMaterializedViewMetadata[];
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+export interface BranchTaskMetadata {
+ /** The name is the name of a task. */
+ name: string;
+ /**
+ * The id is the snowflake-generated id of a task.
+ * Example: 01ad32a0-1bb6-5e93-0000-000000000001
+ */
+ id: string;
+ /** The owner of the task. */
+ owner: string;
+ /** The comment of the task. */
+ comment: string;
+ /** The warehouse of the task. */
+ warehouse: string;
+ /** The schedule interval of the task. */
+ schedule: string;
+ /** The predecessor tasks of the task. */
+ predecessors: string[];
+ /** The state of the task. */
+ state: BranchTaskMetadata_State;
+ /** The condition of the task. */
+ condition: string;
+ /** The definition of the task. */
+ definition: string;
+}
+
+export enum BranchTaskMetadata_State {
+ STATE_UNSPECIFIED = "STATE_UNSPECIFIED",
+ STATE_STARTED = "STATE_STARTED",
+ STATE_SUSPENDED = "STATE_SUSPENDED",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function branchTaskMetadata_StateFromJSON(object: any): BranchTaskMetadata_State {
+ switch (object) {
+ case 0:
+ case "STATE_UNSPECIFIED":
+ return BranchTaskMetadata_State.STATE_UNSPECIFIED;
+ case 1:
+ case "STATE_STARTED":
+ return BranchTaskMetadata_State.STATE_STARTED;
+ case 2:
+ case "STATE_SUSPENDED":
+ return BranchTaskMetadata_State.STATE_SUSPENDED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return BranchTaskMetadata_State.UNRECOGNIZED;
+ }
+}
+
+export function branchTaskMetadata_StateToJSON(object: BranchTaskMetadata_State): string {
+ switch (object) {
+ case BranchTaskMetadata_State.STATE_UNSPECIFIED:
+ return "STATE_UNSPECIFIED";
+ case BranchTaskMetadata_State.STATE_STARTED:
+ return "STATE_STARTED";
+ case BranchTaskMetadata_State.STATE_SUSPENDED:
+ return "STATE_SUSPENDED";
+ case BranchTaskMetadata_State.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function branchTaskMetadata_StateToNumber(object: BranchTaskMetadata_State): number {
+ switch (object) {
+ case BranchTaskMetadata_State.STATE_UNSPECIFIED:
+ return 0;
+ case BranchTaskMetadata_State.STATE_STARTED:
+ return 1;
+ case BranchTaskMetadata_State.STATE_SUSPENDED:
+ return 2;
+ case BranchTaskMetadata_State.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export interface BranchStreamMetadata {
+ /** The name is the name of a stream. */
+ name: string;
+ /** The table_name is the name of the table/view that the stream is created on. */
+ tableName: string;
+ /** The owner of the stream. */
+ owner: string;
+ /** The comment of the stream. */
+ comment: string;
+ /** The type of the stream. */
+ type: BranchStreamMetadata_Type;
+ /** Indicates whether the stream was last read before the `stale_after` time. */
+ stale: boolean;
+ /** The mode of the stream. */
+ mode: BranchStreamMetadata_Mode;
+ /** The definition of the stream. */
+ definition: string;
+}
+
+export enum BranchStreamMetadata_Type {
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
+ TYPE_DELTA = "TYPE_DELTA",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function branchStreamMetadata_TypeFromJSON(object: any): BranchStreamMetadata_Type {
+ switch (object) {
+ case 0:
+ case "TYPE_UNSPECIFIED":
+ return BranchStreamMetadata_Type.TYPE_UNSPECIFIED;
+ case 1:
+ case "TYPE_DELTA":
+ return BranchStreamMetadata_Type.TYPE_DELTA;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return BranchStreamMetadata_Type.UNRECOGNIZED;
+ }
+}
+
+export function branchStreamMetadata_TypeToJSON(object: BranchStreamMetadata_Type): string {
+ switch (object) {
+ case BranchStreamMetadata_Type.TYPE_UNSPECIFIED:
+ return "TYPE_UNSPECIFIED";
+ case BranchStreamMetadata_Type.TYPE_DELTA:
+ return "TYPE_DELTA";
+ case BranchStreamMetadata_Type.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function branchStreamMetadata_TypeToNumber(object: BranchStreamMetadata_Type): number {
+ switch (object) {
+ case BranchStreamMetadata_Type.TYPE_UNSPECIFIED:
+ return 0;
+ case BranchStreamMetadata_Type.TYPE_DELTA:
+ return 1;
+ case BranchStreamMetadata_Type.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+export enum BranchStreamMetadata_Mode {
+ MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
+ MODE_DEFAULT = "MODE_DEFAULT",
+ MODE_APPEND_ONLY = "MODE_APPEND_ONLY",
+ MODE_INSERT_ONLY = "MODE_INSERT_ONLY",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function branchStreamMetadata_ModeFromJSON(object: any): BranchStreamMetadata_Mode {
+ switch (object) {
+ case 0:
+ case "MODE_UNSPECIFIED":
+ return BranchStreamMetadata_Mode.MODE_UNSPECIFIED;
+ case 1:
+ case "MODE_DEFAULT":
+ return BranchStreamMetadata_Mode.MODE_DEFAULT;
+ case 2:
+ case "MODE_APPEND_ONLY":
+ return BranchStreamMetadata_Mode.MODE_APPEND_ONLY;
+ case 3:
+ case "MODE_INSERT_ONLY":
+ return BranchStreamMetadata_Mode.MODE_INSERT_ONLY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return BranchStreamMetadata_Mode.UNRECOGNIZED;
+ }
+}
+
+export function branchStreamMetadata_ModeToJSON(object: BranchStreamMetadata_Mode): string {
+ switch (object) {
+ case BranchStreamMetadata_Mode.MODE_UNSPECIFIED:
+ return "MODE_UNSPECIFIED";
+ case BranchStreamMetadata_Mode.MODE_DEFAULT:
+ return "MODE_DEFAULT";
+ case BranchStreamMetadata_Mode.MODE_APPEND_ONLY:
+ return "MODE_APPEND_ONLY";
+ case BranchStreamMetadata_Mode.MODE_INSERT_ONLY:
+ return "MODE_INSERT_ONLY";
+ case BranchStreamMetadata_Mode.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function branchStreamMetadata_ModeToNumber(object: BranchStreamMetadata_Mode): number {
+ switch (object) {
+ case BranchStreamMetadata_Mode.MODE_UNSPECIFIED:
+ return 0;
+ case BranchStreamMetadata_Mode.MODE_DEFAULT:
+ return 1;
+ case BranchStreamMetadata_Mode.MODE_APPEND_ONLY:
+ return 2;
+ case BranchStreamMetadata_Mode.MODE_INSERT_ONLY:
+ return 3;
+ case BranchStreamMetadata_Mode.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+/** BranchTableMetadata is the metadata for tables used in branch. */
+export interface BranchTableMetadata {
+ /** The name is the name of a table. */
+ name: string;
+ /** The columns is the ordered list of columns in a table. */
+ columns: BranchColumnMetadata[];
+ /** The indexes is the list of indexes in a table. */
+ indexes: BranchIndexMetadata[];
+ /** The engine is the engine of a table. */
+ engine: string;
+ /** The collation is the collation of a table. */
+ collation: string;
+ /** The row_count is the estimated number of rows of a table. */
+ rowCount: Long;
+ /** The data_size is the estimated data size of a table. */
+ dataSize: Long;
+ /** The index_size is the estimated index size of a table. */
+ indexSize: Long;
+ /** The data_free is the estimated free data size of a table. */
+ dataFree: Long;
+ /** The create_options is the create option of a table. */
+ createOptions: string;
+ /**
+ * The comment is the comment of a table.
+ * classification and user_comment is parsed from the comment.
+ */
+ comment: string;
+ /** The classification is the classification of a table parsed from the comment. */
+ classification: string;
+ /** The user_comment is the user comment of a table parsed from the comment. */
+ userComment: string;
+ /** The foreign_keys is the list of foreign keys in a table. */
+ foreignKeys: BranchForeignKeyMetadata[];
+ /** The partitions is the list of partitions in a table. */
+ partitions: BranchTablePartitionMetadata[];
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+export interface BranchExternalTableMetadata {
+ /** The name is the name of a external table. */
+ name: string;
+ /** The external_server_name is the name of the external server. */
+ externalServerName: string;
+ /** The external_database_name is the name of the external database. */
+ externalDatabaseName: string;
+ /** The columns is the ordered list of columns in a foreign table. */
+ columns: BranchColumnMetadata[];
+}
+
+/** BranchTablePartitionMetadata is the metadata for table partitions used in branch. */
+export interface BranchTablePartitionMetadata {
+ /** The name is the name of a table partition. */
+ name: string;
+ /** The type of a table partition. */
+ type: BranchTablePartitionMetadata_Type;
+ /**
+ * The expression is the expression of a table partition.
+ * For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.
+ * For MySQL, the expression is the `expr` or `column_list` of the following syntax.
+ * PARTITION BY
+ * { [LINEAR] HASH(expr)
+ * | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ * | RANGE{(expr) | COLUMNS(column_list)}
+ * | LIST{(expr) | COLUMNS(column_list)} }.
+ */
+ expression: string;
+ /**
+ * The value is the value of a table partition.
+ * For MySQL, the value is for RANGE and LIST partition types,
+ * - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+ * - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values.
+ * - For others, it's an empty string.
+ */
+ value: string;
+ /**
+ * The use_default is whether the users use the default partition, it stores the different value for different database engines.
+ * For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}.
+ */
+ useDefault: string;
+ /** The subpartitions is the list of subpartitions in a table partition. */
+ subpartitions: BranchTablePartitionMetadata[];
+}
+
+/**
+ * Type is the type of a table partition, some database engines may not support all types.
+ * Only avilable for the following database engines now:
+ * MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)
+ * TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY
+ * PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+ */
+export enum BranchTablePartitionMetadata_Type {
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
+ RANGE = "RANGE",
+ RANGE_COLUMNS = "RANGE_COLUMNS",
+ LIST = "LIST",
+ LIST_COLUMNS = "LIST_COLUMNS",
+ HASH = "HASH",
+ LINEAR_HASH = "LINEAR_HASH",
+ KEY = "KEY",
+ LINEAR_KEY = "LINEAR_KEY",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function branchTablePartitionMetadata_TypeFromJSON(object: any): BranchTablePartitionMetadata_Type {
+ switch (object) {
+ case 0:
+ case "TYPE_UNSPECIFIED":
+ return BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED;
+ case 1:
+ case "RANGE":
+ return BranchTablePartitionMetadata_Type.RANGE;
+ case 2:
+ case "RANGE_COLUMNS":
+ return BranchTablePartitionMetadata_Type.RANGE_COLUMNS;
+ case 3:
+ case "LIST":
+ return BranchTablePartitionMetadata_Type.LIST;
+ case 4:
+ case "LIST_COLUMNS":
+ return BranchTablePartitionMetadata_Type.LIST_COLUMNS;
+ case 5:
+ case "HASH":
+ return BranchTablePartitionMetadata_Type.HASH;
+ case 6:
+ case "LINEAR_HASH":
+ return BranchTablePartitionMetadata_Type.LINEAR_HASH;
+ case 7:
+ case "KEY":
+ return BranchTablePartitionMetadata_Type.KEY;
+ case 8:
+ case "LINEAR_KEY":
+ return BranchTablePartitionMetadata_Type.LINEAR_KEY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return BranchTablePartitionMetadata_Type.UNRECOGNIZED;
+ }
+}
+
+export function branchTablePartitionMetadata_TypeToJSON(object: BranchTablePartitionMetadata_Type): string {
+ switch (object) {
+ case BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED:
+ return "TYPE_UNSPECIFIED";
+ case BranchTablePartitionMetadata_Type.RANGE:
+ return "RANGE";
+ case BranchTablePartitionMetadata_Type.RANGE_COLUMNS:
+ return "RANGE_COLUMNS";
+ case BranchTablePartitionMetadata_Type.LIST:
+ return "LIST";
+ case BranchTablePartitionMetadata_Type.LIST_COLUMNS:
+ return "LIST_COLUMNS";
+ case BranchTablePartitionMetadata_Type.HASH:
+ return "HASH";
+ case BranchTablePartitionMetadata_Type.LINEAR_HASH:
+ return "LINEAR_HASH";
+ case BranchTablePartitionMetadata_Type.KEY:
+ return "KEY";
+ case BranchTablePartitionMetadata_Type.LINEAR_KEY:
+ return "LINEAR_KEY";
+ case BranchTablePartitionMetadata_Type.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function branchTablePartitionMetadata_TypeToNumber(object: BranchTablePartitionMetadata_Type): number {
+ switch (object) {
+ case BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED:
+ return 0;
+ case BranchTablePartitionMetadata_Type.RANGE:
+ return 1;
+ case BranchTablePartitionMetadata_Type.RANGE_COLUMNS:
+ return 2;
+ case BranchTablePartitionMetadata_Type.LIST:
+ return 3;
+ case BranchTablePartitionMetadata_Type.LIST_COLUMNS:
+ return 4;
+ case BranchTablePartitionMetadata_Type.HASH:
+ return 5;
+ case BranchTablePartitionMetadata_Type.LINEAR_HASH:
+ return 6;
+ case BranchTablePartitionMetadata_Type.KEY:
+ return 7;
+ case BranchTablePartitionMetadata_Type.LINEAR_KEY:
+ return 8;
+ case BranchTablePartitionMetadata_Type.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
+/** BranchColumnMetadata is the metadata for columns used in branch. */
+export interface BranchColumnMetadata {
+ /** The name is the name of a column. */
+ name: string;
+ /** The position is the position in columns. */
+ position: number;
+ /** The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. */
+ default?: string | undefined;
+ defaultNull?: boolean | undefined;
+ defaultExpression?:
+ | string
+ | undefined;
+ /**
+ * The on_update is the on update action of a column.
+ * For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value.
+ */
+ onUpdate: string;
+ /** The nullable is the nullable of a column. */
+ nullable: boolean;
+ /** The type is the type of a column. */
+ type: string;
+ /** The character_set is the character_set of a column. */
+ characterSet: string;
+ /** The collation is the collation of a column. */
+ collation: string;
+ /**
+ * The comment is the comment of a column.
+ * classification and user_comment is parsed from the comment.
+ */
+ comment: string;
+ /** The classification is the classification of a table parsed from the comment. */
+ classification: string;
+ /** The user_comment is the user comment of a table parsed from the comment. */
+ userComment: string;
+}
+
+/** BranchViewMetadata is the metadata for views used in branch. */
+export interface BranchViewMetadata {
+ /** The name is the name of a view. */
+ name: string;
+ /** The definition is the definition of a view. */
+ definition: string;
+ /** The comment is the comment of a view. */
+ comment: string;
+ /** The dependent_columns is the list of dependent columns of a view. */
+ dependentColumns: BranchDependentColumn[];
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+/** BranchDependentColumn is the metadata for dependent columns used in branch. */
+export interface BranchDependentColumn {
+ /** The schema is the schema of a reference column. */
+ schema: string;
+ /** The table is the table of a reference column. */
+ table: string;
+ /** The column is the name of a reference column. */
+ column: string;
+}
+
+/** BranchMaterializedViewMetadata is the metadata for materialized views used in branch. */
+export interface BranchMaterializedViewMetadata {
+ /** The name is the name of a view. */
+ name: string;
+ /** The definition is the definition of a view. */
+ definition: string;
+ /** The comment is the comment of a view. */
+ comment: string;
+ /** The dependent_columns is the list of dependent columns of a view. */
+ dependentColumns: BranchDependentColumn[];
+}
+
+/** BranchFunctionMetadata is the metadata for functions used in branch. */
+export interface BranchFunctionMetadata {
+ /** The name is the name of a function. */
+ name: string;
+ /** The definition is the definition of a function. */
+ definition: string;
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+/** BranchProcedureMetadata is the metadata for procedures used in branch. */
+export interface BranchProcedureMetadata {
+ /** The name is the name of a procedure. */
+ name: string;
+ /** The definition is the definition of a procedure. */
+ definition: string;
+ /**
+ * The last updater of the object.
+ * Format: users/{email}
+ */
+ updater: string;
+ /** The timestamp when the object was last updated. */
+ updateTime: Date | undefined;
+}
+
+/** BranchIndexMetadata is the metadata for indexes used in branch. */
+export interface BranchIndexMetadata {
+ /** The name is the name of an index. */
+ name: string;
+ /**
+ * The expressions are the ordered columns or expressions of an index.
+ * This could refer to a column or an expression.
+ */
+ expressions: string[];
+ /**
+ * The key_lengths are the ordered key lengths of an index.
+ * If the key length is not specified, it's -1.
+ */
+ keyLength: Long[];
+ /** The type is the type of an index. */
+ type: string;
+ /** The unique is whether the index is unique. */
+ unique: boolean;
+ /** The primary is whether the index is a primary key index. */
+ primary: boolean;
+ /** The visible is whether the index is visible. */
+ visible: boolean;
+ /** The comment is the comment of an index. */
+ comment: string;
+ /** The definition of an index. */
+ definition: string;
+}
+
+/** BranchExtensionMetadata is the metadata for extensions used in branch. */
+export interface BranchExtensionMetadata {
+ /** The name is the name of an extension. */
+ name: string;
+ /** The schema is the extension that is installed to. But the extension usage is not limited to the schema. */
+ schema: string;
+ /** The version is the version of an extension. */
+ version: string;
+ /** The description is the description of an extension. */
+ description: string;
+}
+
+/** BranchForeignKeyMetadata is the metadata for foreign keys used in branch. */
+export interface BranchForeignKeyMetadata {
+ /** The name is the name of a foreign key. */
+ name: string;
+ /** The columns are the ordered referencing columns of a foreign key. */
+ columns: string[];
+ /**
+ * The referenced_schema is the referenced schema name of a foreign key.
+ * It is an empty string for databases without such concept such as MySQL.
+ */
+ referencedSchema: string;
+ /** The referenced_table is the referenced table name of a foreign key. */
+ referencedTable: string;
+ /** The referenced_columns are the ordered referenced columns of a foreign key. */
+ referencedColumns: string[];
+ /** The on_delete is the on delete action of a foreign key. */
+ onDelete: string;
+ /** The on_update is the on update action of a foreign key. */
+ onUpdate: string;
+ /**
+ * The match_type is the match type of a foreign key.
+ * The match_type is the PostgreSQL specific field.
+ * It's empty string for other databases.
+ */
+ matchType: string;
+}
+
function createBaseBranch(): Branch {
return {
name: "",
@@ -1742,6 +2370,2641 @@ export const DiffMetadataResponse = {
},
};
+function createBaseBranchDatabaseSchemaMetadata(): BranchDatabaseSchemaMetadata {
+ return { name: "", schemas: [], characterSet: "", collation: "", extensions: [], datashare: false, serviceName: "" };
+}
+
+export const BranchDatabaseSchemaMetadata = {
+ encode(message: BranchDatabaseSchemaMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.schemas) {
+ BranchSchemaMetadata.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.characterSet !== "") {
+ writer.uint32(26).string(message.characterSet);
+ }
+ if (message.collation !== "") {
+ writer.uint32(34).string(message.collation);
+ }
+ for (const v of message.extensions) {
+ ExtensionMetadata.encode(v!, writer.uint32(42).fork()).ldelim();
+ }
+ if (message.datashare === true) {
+ writer.uint32(48).bool(message.datashare);
+ }
+ if (message.serviceName !== "") {
+ writer.uint32(58).string(message.serviceName);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchDatabaseSchemaMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchDatabaseSchemaMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.schemas.push(BranchSchemaMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.characterSet = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.collation = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.extensions.push(ExtensionMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.datashare = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.serviceName = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchDatabaseSchemaMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ schemas: globalThis.Array.isArray(object?.schemas)
+ ? object.schemas.map((e: any) => BranchSchemaMetadata.fromJSON(e))
+ : [],
+ characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",
+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",
+ extensions: globalThis.Array.isArray(object?.extensions)
+ ? object.extensions.map((e: any) => ExtensionMetadata.fromJSON(e))
+ : [],
+ datashare: isSet(object.datashare) ? globalThis.Boolean(object.datashare) : false,
+ serviceName: isSet(object.serviceName) ? globalThis.String(object.serviceName) : "",
+ };
+ },
+
+ toJSON(message: BranchDatabaseSchemaMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.schemas?.length) {
+ obj.schemas = message.schemas.map((e) => BranchSchemaMetadata.toJSON(e));
+ }
+ if (message.characterSet !== "") {
+ obj.characterSet = message.characterSet;
+ }
+ if (message.collation !== "") {
+ obj.collation = message.collation;
+ }
+ if (message.extensions?.length) {
+ obj.extensions = message.extensions.map((e) => ExtensionMetadata.toJSON(e));
+ }
+ if (message.datashare === true) {
+ obj.datashare = message.datashare;
+ }
+ if (message.serviceName !== "") {
+ obj.serviceName = message.serviceName;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchDatabaseSchemaMetadata>): BranchDatabaseSchemaMetadata {
+ return BranchDatabaseSchemaMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchDatabaseSchemaMetadata>): BranchDatabaseSchemaMetadata {
+ const message = createBaseBranchDatabaseSchemaMetadata();
+ message.name = object.name ?? "";
+ message.schemas = object.schemas?.map((e) => BranchSchemaMetadata.fromPartial(e)) || [];
+ message.characterSet = object.characterSet ?? "";
+ message.collation = object.collation ?? "";
+ message.extensions = object.extensions?.map((e) => ExtensionMetadata.fromPartial(e)) || [];
+ message.datashare = object.datashare ?? false;
+ message.serviceName = object.serviceName ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchSchemaMetadata(): BranchSchemaMetadata {
+ return {
+ name: "",
+ tables: [],
+ externalTables: [],
+ views: [],
+ functions: [],
+ procedures: [],
+ streams: [],
+ tasks: [],
+ materializedViews: [],
+ updater: "",
+ updateTime: undefined,
+ };
+}
+
+export const BranchSchemaMetadata = {
+ encode(message: BranchSchemaMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.tables) {
+ BranchTableMetadata.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ for (const v of message.externalTables) {
+ BranchExternalTableMetadata.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ for (const v of message.views) {
+ BranchViewMetadata.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ for (const v of message.functions) {
+ BranchFunctionMetadata.encode(v!, writer.uint32(42).fork()).ldelim();
+ }
+ for (const v of message.procedures) {
+ BranchProcedureMetadata.encode(v!, writer.uint32(50).fork()).ldelim();
+ }
+ for (const v of message.streams) {
+ BranchStreamMetadata.encode(v!, writer.uint32(58).fork()).ldelim();
+ }
+ for (const v of message.tasks) {
+ BranchTaskMetadata.encode(v!, writer.uint32(66).fork()).ldelim();
+ }
+ for (const v of message.materializedViews) {
+ BranchMaterializedViewMetadata.encode(v!, writer.uint32(74).fork()).ldelim();
+ }
+ if (message.updater !== "") {
+ writer.uint32(82).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(90).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchSchemaMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchSchemaMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.tables.push(BranchTableMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.externalTables.push(BranchExternalTableMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.views.push(BranchViewMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.functions.push(BranchFunctionMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.procedures.push(BranchProcedureMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.streams.push(BranchStreamMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.tasks.push(BranchTaskMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.materializedViews.push(BranchMaterializedViewMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchSchemaMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ tables: globalThis.Array.isArray(object?.tables)
+ ? object.tables.map((e: any) => BranchTableMetadata.fromJSON(e))
+ : [],
+ externalTables: globalThis.Array.isArray(object?.externalTables)
+ ? object.externalTables.map((e: any) => BranchExternalTableMetadata.fromJSON(e))
+ : [],
+ views: globalThis.Array.isArray(object?.views)
+ ? object.views.map((e: any) => BranchViewMetadata.fromJSON(e))
+ : [],
+ functions: globalThis.Array.isArray(object?.functions)
+ ? object.functions.map((e: any) => BranchFunctionMetadata.fromJSON(e))
+ : [],
+ procedures: globalThis.Array.isArray(object?.procedures)
+ ? object.procedures.map((e: any) => BranchProcedureMetadata.fromJSON(e))
+ : [],
+ streams: globalThis.Array.isArray(object?.streams)
+ ? object.streams.map((e: any) => BranchStreamMetadata.fromJSON(e))
+ : [],
+ tasks: globalThis.Array.isArray(object?.tasks)
+ ? object.tasks.map((e: any) => BranchTaskMetadata.fromJSON(e))
+ : [],
+ materializedViews: globalThis.Array.isArray(object?.materializedViews)
+ ? object.materializedViews.map((e: any) => BranchMaterializedViewMetadata.fromJSON(e))
+ : [],
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchSchemaMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.tables?.length) {
+ obj.tables = message.tables.map((e) => BranchTableMetadata.toJSON(e));
+ }
+ if (message.externalTables?.length) {
+ obj.externalTables = message.externalTables.map((e) => BranchExternalTableMetadata.toJSON(e));
+ }
+ if (message.views?.length) {
+ obj.views = message.views.map((e) => BranchViewMetadata.toJSON(e));
+ }
+ if (message.functions?.length) {
+ obj.functions = message.functions.map((e) => BranchFunctionMetadata.toJSON(e));
+ }
+ if (message.procedures?.length) {
+ obj.procedures = message.procedures.map((e) => BranchProcedureMetadata.toJSON(e));
+ }
+ if (message.streams?.length) {
+ obj.streams = message.streams.map((e) => BranchStreamMetadata.toJSON(e));
+ }
+ if (message.tasks?.length) {
+ obj.tasks = message.tasks.map((e) => BranchTaskMetadata.toJSON(e));
+ }
+ if (message.materializedViews?.length) {
+ obj.materializedViews = message.materializedViews.map((e) => BranchMaterializedViewMetadata.toJSON(e));
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchSchemaMetadata>): BranchSchemaMetadata {
+ return BranchSchemaMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchSchemaMetadata>): BranchSchemaMetadata {
+ const message = createBaseBranchSchemaMetadata();
+ message.name = object.name ?? "";
+ message.tables = object.tables?.map((e) => BranchTableMetadata.fromPartial(e)) || [];
+ message.externalTables = object.externalTables?.map((e) => BranchExternalTableMetadata.fromPartial(e)) || [];
+ message.views = object.views?.map((e) => BranchViewMetadata.fromPartial(e)) || [];
+ message.functions = object.functions?.map((e) => BranchFunctionMetadata.fromPartial(e)) || [];
+ message.procedures = object.procedures?.map((e) => BranchProcedureMetadata.fromPartial(e)) || [];
+ message.streams = object.streams?.map((e) => BranchStreamMetadata.fromPartial(e)) || [];
+ message.tasks = object.tasks?.map((e) => BranchTaskMetadata.fromPartial(e)) || [];
+ message.materializedViews = object.materializedViews?.map((e) => BranchMaterializedViewMetadata.fromPartial(e)) ||
+ [];
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchTaskMetadata(): BranchTaskMetadata {
+ return {
+ name: "",
+ id: "",
+ owner: "",
+ comment: "",
+ warehouse: "",
+ schedule: "",
+ predecessors: [],
+ state: BranchTaskMetadata_State.STATE_UNSPECIFIED,
+ condition: "",
+ definition: "",
+ };
+}
+
+export const BranchTaskMetadata = {
+ encode(message: BranchTaskMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.id !== "") {
+ writer.uint32(18).string(message.id);
+ }
+ if (message.owner !== "") {
+ writer.uint32(26).string(message.owner);
+ }
+ if (message.comment !== "") {
+ writer.uint32(34).string(message.comment);
+ }
+ if (message.warehouse !== "") {
+ writer.uint32(42).string(message.warehouse);
+ }
+ if (message.schedule !== "") {
+ writer.uint32(50).string(message.schedule);
+ }
+ for (const v of message.predecessors) {
+ writer.uint32(58).string(v!);
+ }
+ if (message.state !== BranchTaskMetadata_State.STATE_UNSPECIFIED) {
+ writer.uint32(64).int32(branchTaskMetadata_StateToNumber(message.state));
+ }
+ if (message.condition !== "") {
+ writer.uint32(74).string(message.condition);
+ }
+ if (message.definition !== "") {
+ writer.uint32(82).string(message.definition);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchTaskMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchTaskMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.id = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.owner = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.warehouse = reader.string();
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.schedule = reader.string();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.predecessors.push(reader.string());
+ continue;
+ case 8:
+ if (tag !== 64) {
+ break;
+ }
+
+ message.state = branchTaskMetadata_StateFromJSON(reader.int32());
+ continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.condition = reader.string();
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchTaskMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ warehouse: isSet(object.warehouse) ? globalThis.String(object.warehouse) : "",
+ schedule: isSet(object.schedule) ? globalThis.String(object.schedule) : "",
+ predecessors: globalThis.Array.isArray(object?.predecessors)
+ ? object.predecessors.map((e: any) => globalThis.String(e))
+ : [],
+ state: isSet(object.state)
+ ? branchTaskMetadata_StateFromJSON(object.state)
+ : BranchTaskMetadata_State.STATE_UNSPECIFIED,
+ condition: isSet(object.condition) ? globalThis.String(object.condition) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ };
+ },
+
+ toJSON(message: BranchTaskMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.id !== "") {
+ obj.id = message.id;
+ }
+ if (message.owner !== "") {
+ obj.owner = message.owner;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.warehouse !== "") {
+ obj.warehouse = message.warehouse;
+ }
+ if (message.schedule !== "") {
+ obj.schedule = message.schedule;
+ }
+ if (message.predecessors?.length) {
+ obj.predecessors = message.predecessors;
+ }
+ if (message.state !== BranchTaskMetadata_State.STATE_UNSPECIFIED) {
+ obj.state = branchTaskMetadata_StateToJSON(message.state);
+ }
+ if (message.condition !== "") {
+ obj.condition = message.condition;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchTaskMetadata>): BranchTaskMetadata {
+ return BranchTaskMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchTaskMetadata>): BranchTaskMetadata {
+ const message = createBaseBranchTaskMetadata();
+ message.name = object.name ?? "";
+ message.id = object.id ?? "";
+ message.owner = object.owner ?? "";
+ message.comment = object.comment ?? "";
+ message.warehouse = object.warehouse ?? "";
+ message.schedule = object.schedule ?? "";
+ message.predecessors = object.predecessors?.map((e) => e) || [];
+ message.state = object.state ?? BranchTaskMetadata_State.STATE_UNSPECIFIED;
+ message.condition = object.condition ?? "";
+ message.definition = object.definition ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchStreamMetadata(): BranchStreamMetadata {
+ return {
+ name: "",
+ tableName: "",
+ owner: "",
+ comment: "",
+ type: BranchStreamMetadata_Type.TYPE_UNSPECIFIED,
+ stale: false,
+ mode: BranchStreamMetadata_Mode.MODE_UNSPECIFIED,
+ definition: "",
+ };
+}
+
+export const BranchStreamMetadata = {
+ encode(message: BranchStreamMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.tableName !== "") {
+ writer.uint32(18).string(message.tableName);
+ }
+ if (message.owner !== "") {
+ writer.uint32(26).string(message.owner);
+ }
+ if (message.comment !== "") {
+ writer.uint32(34).string(message.comment);
+ }
+ if (message.type !== BranchStreamMetadata_Type.TYPE_UNSPECIFIED) {
+ writer.uint32(40).int32(branchStreamMetadata_TypeToNumber(message.type));
+ }
+ if (message.stale === true) {
+ writer.uint32(48).bool(message.stale);
+ }
+ if (message.mode !== BranchStreamMetadata_Mode.MODE_UNSPECIFIED) {
+ writer.uint32(56).int32(branchStreamMetadata_ModeToNumber(message.mode));
+ }
+ if (message.definition !== "") {
+ writer.uint32(66).string(message.definition);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchStreamMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchStreamMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.tableName = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.owner = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.type = branchStreamMetadata_TypeFromJSON(reader.int32());
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.stale = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 56) {
+ break;
+ }
+
+ message.mode = branchStreamMetadata_ModeFromJSON(reader.int32());
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchStreamMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ tableName: isSet(object.tableName) ? globalThis.String(object.tableName) : "",
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ type: isSet(object.type)
+ ? branchStreamMetadata_TypeFromJSON(object.type)
+ : BranchStreamMetadata_Type.TYPE_UNSPECIFIED,
+ stale: isSet(object.stale) ? globalThis.Boolean(object.stale) : false,
+ mode: isSet(object.mode)
+ ? branchStreamMetadata_ModeFromJSON(object.mode)
+ : BranchStreamMetadata_Mode.MODE_UNSPECIFIED,
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ };
+ },
+
+ toJSON(message: BranchStreamMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.tableName !== "") {
+ obj.tableName = message.tableName;
+ }
+ if (message.owner !== "") {
+ obj.owner = message.owner;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.type !== BranchStreamMetadata_Type.TYPE_UNSPECIFIED) {
+ obj.type = branchStreamMetadata_TypeToJSON(message.type);
+ }
+ if (message.stale === true) {
+ obj.stale = message.stale;
+ }
+ if (message.mode !== BranchStreamMetadata_Mode.MODE_UNSPECIFIED) {
+ obj.mode = branchStreamMetadata_ModeToJSON(message.mode);
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchStreamMetadata>): BranchStreamMetadata {
+ return BranchStreamMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchStreamMetadata>): BranchStreamMetadata {
+ const message = createBaseBranchStreamMetadata();
+ message.name = object.name ?? "";
+ message.tableName = object.tableName ?? "";
+ message.owner = object.owner ?? "";
+ message.comment = object.comment ?? "";
+ message.type = object.type ?? BranchStreamMetadata_Type.TYPE_UNSPECIFIED;
+ message.stale = object.stale ?? false;
+ message.mode = object.mode ?? BranchStreamMetadata_Mode.MODE_UNSPECIFIED;
+ message.definition = object.definition ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchTableMetadata(): BranchTableMetadata {
+ return {
+ name: "",
+ columns: [],
+ indexes: [],
+ engine: "",
+ collation: "",
+ rowCount: Long.ZERO,
+ dataSize: Long.ZERO,
+ indexSize: Long.ZERO,
+ dataFree: Long.ZERO,
+ createOptions: "",
+ comment: "",
+ classification: "",
+ userComment: "",
+ foreignKeys: [],
+ partitions: [],
+ updater: "",
+ updateTime: undefined,
+ };
+}
+
+export const BranchTableMetadata = {
+ encode(message: BranchTableMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.columns) {
+ BranchColumnMetadata.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ for (const v of message.indexes) {
+ BranchIndexMetadata.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ if (message.engine !== "") {
+ writer.uint32(34).string(message.engine);
+ }
+ if (message.collation !== "") {
+ writer.uint32(42).string(message.collation);
+ }
+ if (!message.rowCount.isZero()) {
+ writer.uint32(48).int64(message.rowCount);
+ }
+ if (!message.dataSize.isZero()) {
+ writer.uint32(56).int64(message.dataSize);
+ }
+ if (!message.indexSize.isZero()) {
+ writer.uint32(64).int64(message.indexSize);
+ }
+ if (!message.dataFree.isZero()) {
+ writer.uint32(72).int64(message.dataFree);
+ }
+ if (message.createOptions !== "") {
+ writer.uint32(82).string(message.createOptions);
+ }
+ if (message.comment !== "") {
+ writer.uint32(90).string(message.comment);
+ }
+ if (message.classification !== "") {
+ writer.uint32(106).string(message.classification);
+ }
+ if (message.userComment !== "") {
+ writer.uint32(114).string(message.userComment);
+ }
+ for (const v of message.foreignKeys) {
+ BranchForeignKeyMetadata.encode(v!, writer.uint32(98).fork()).ldelim();
+ }
+ for (const v of message.partitions) {
+ BranchTablePartitionMetadata.encode(v!, writer.uint32(122).fork()).ldelim();
+ }
+ if (message.updater !== "") {
+ writer.uint32(130).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(138).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchTableMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchTableMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.columns.push(BranchColumnMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.indexes.push(BranchIndexMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.engine = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.collation = reader.string();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.rowCount = reader.int64() as Long;
+ continue;
+ case 7:
+ if (tag !== 56) {
+ break;
+ }
+
+ message.dataSize = reader.int64() as Long;
+ continue;
+ case 8:
+ if (tag !== 64) {
+ break;
+ }
+
+ message.indexSize = reader.int64() as Long;
+ continue;
+ case 9:
+ if (tag !== 72) {
+ break;
+ }
+
+ message.dataFree = reader.int64() as Long;
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.createOptions = reader.string();
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 13:
+ if (tag !== 106) {
+ break;
+ }
+
+ message.classification = reader.string();
+ continue;
+ case 14:
+ if (tag !== 114) {
+ break;
+ }
+
+ message.userComment = reader.string();
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.foreignKeys.push(BranchForeignKeyMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 15:
+ if (tag !== 122) {
+ break;
+ }
+
+ message.partitions.push(BranchTablePartitionMetadata.decode(reader, reader.uint32()));
+ continue;
+ case 16:
+ if (tag !== 130) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 17:
+ if (tag !== 138) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchTableMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ columns: globalThis.Array.isArray(object?.columns)
+ ? object.columns.map((e: any) => BranchColumnMetadata.fromJSON(e))
+ : [],
+ indexes: globalThis.Array.isArray(object?.indexes)
+ ? object.indexes.map((e: any) => BranchIndexMetadata.fromJSON(e))
+ : [],
+ engine: isSet(object.engine) ? globalThis.String(object.engine) : "",
+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",
+ rowCount: isSet(object.rowCount) ? Long.fromValue(object.rowCount) : Long.ZERO,
+ dataSize: isSet(object.dataSize) ? Long.fromValue(object.dataSize) : Long.ZERO,
+ indexSize: isSet(object.indexSize) ? Long.fromValue(object.indexSize) : Long.ZERO,
+ dataFree: isSet(object.dataFree) ? Long.fromValue(object.dataFree) : Long.ZERO,
+ createOptions: isSet(object.createOptions) ? globalThis.String(object.createOptions) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",
+ userComment: isSet(object.userComment) ? globalThis.String(object.userComment) : "",
+ foreignKeys: globalThis.Array.isArray(object?.foreignKeys)
+ ? object.foreignKeys.map((e: any) => BranchForeignKeyMetadata.fromJSON(e))
+ : [],
+ partitions: globalThis.Array.isArray(object?.partitions)
+ ? object.partitions.map((e: any) => BranchTablePartitionMetadata.fromJSON(e))
+ : [],
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchTableMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.columns?.length) {
+ obj.columns = message.columns.map((e) => BranchColumnMetadata.toJSON(e));
+ }
+ if (message.indexes?.length) {
+ obj.indexes = message.indexes.map((e) => BranchIndexMetadata.toJSON(e));
+ }
+ if (message.engine !== "") {
+ obj.engine = message.engine;
+ }
+ if (message.collation !== "") {
+ obj.collation = message.collation;
+ }
+ if (!message.rowCount.isZero()) {
+ obj.rowCount = (message.rowCount || Long.ZERO).toString();
+ }
+ if (!message.dataSize.isZero()) {
+ obj.dataSize = (message.dataSize || Long.ZERO).toString();
+ }
+ if (!message.indexSize.isZero()) {
+ obj.indexSize = (message.indexSize || Long.ZERO).toString();
+ }
+ if (!message.dataFree.isZero()) {
+ obj.dataFree = (message.dataFree || Long.ZERO).toString();
+ }
+ if (message.createOptions !== "") {
+ obj.createOptions = message.createOptions;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.classification !== "") {
+ obj.classification = message.classification;
+ }
+ if (message.userComment !== "") {
+ obj.userComment = message.userComment;
+ }
+ if (message.foreignKeys?.length) {
+ obj.foreignKeys = message.foreignKeys.map((e) => BranchForeignKeyMetadata.toJSON(e));
+ }
+ if (message.partitions?.length) {
+ obj.partitions = message.partitions.map((e) => BranchTablePartitionMetadata.toJSON(e));
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchTableMetadata>): BranchTableMetadata {
+ return BranchTableMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchTableMetadata>): BranchTableMetadata {
+ const message = createBaseBranchTableMetadata();
+ message.name = object.name ?? "";
+ message.columns = object.columns?.map((e) => BranchColumnMetadata.fromPartial(e)) || [];
+ message.indexes = object.indexes?.map((e) => BranchIndexMetadata.fromPartial(e)) || [];
+ message.engine = object.engine ?? "";
+ message.collation = object.collation ?? "";
+ message.rowCount = (object.rowCount !== undefined && object.rowCount !== null)
+ ? Long.fromValue(object.rowCount)
+ : Long.ZERO;
+ message.dataSize = (object.dataSize !== undefined && object.dataSize !== null)
+ ? Long.fromValue(object.dataSize)
+ : Long.ZERO;
+ message.indexSize = (object.indexSize !== undefined && object.indexSize !== null)
+ ? Long.fromValue(object.indexSize)
+ : Long.ZERO;
+ message.dataFree = (object.dataFree !== undefined && object.dataFree !== null)
+ ? Long.fromValue(object.dataFree)
+ : Long.ZERO;
+ message.createOptions = object.createOptions ?? "";
+ message.comment = object.comment ?? "";
+ message.classification = object.classification ?? "";
+ message.userComment = object.userComment ?? "";
+ message.foreignKeys = object.foreignKeys?.map((e) => BranchForeignKeyMetadata.fromPartial(e)) || [];
+ message.partitions = object.partitions?.map((e) => BranchTablePartitionMetadata.fromPartial(e)) || [];
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchExternalTableMetadata(): BranchExternalTableMetadata {
+ return { name: "", externalServerName: "", externalDatabaseName: "", columns: [] };
+}
+
+export const BranchExternalTableMetadata = {
+ encode(message: BranchExternalTableMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.externalServerName !== "") {
+ writer.uint32(18).string(message.externalServerName);
+ }
+ if (message.externalDatabaseName !== "") {
+ writer.uint32(26).string(message.externalDatabaseName);
+ }
+ for (const v of message.columns) {
+ BranchColumnMetadata.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchExternalTableMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchExternalTableMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.externalServerName = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.externalDatabaseName = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.columns.push(BranchColumnMetadata.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchExternalTableMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ externalServerName: isSet(object.externalServerName) ? globalThis.String(object.externalServerName) : "",
+ externalDatabaseName: isSet(object.externalDatabaseName) ? globalThis.String(object.externalDatabaseName) : "",
+ columns: globalThis.Array.isArray(object?.columns)
+ ? object.columns.map((e: any) => BranchColumnMetadata.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: BranchExternalTableMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.externalServerName !== "") {
+ obj.externalServerName = message.externalServerName;
+ }
+ if (message.externalDatabaseName !== "") {
+ obj.externalDatabaseName = message.externalDatabaseName;
+ }
+ if (message.columns?.length) {
+ obj.columns = message.columns.map((e) => BranchColumnMetadata.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchExternalTableMetadata>): BranchExternalTableMetadata {
+ return BranchExternalTableMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchExternalTableMetadata>): BranchExternalTableMetadata {
+ const message = createBaseBranchExternalTableMetadata();
+ message.name = object.name ?? "";
+ message.externalServerName = object.externalServerName ?? "";
+ message.externalDatabaseName = object.externalDatabaseName ?? "";
+ message.columns = object.columns?.map((e) => BranchColumnMetadata.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseBranchTablePartitionMetadata(): BranchTablePartitionMetadata {
+ return {
+ name: "",
+ type: BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED,
+ expression: "",
+ value: "",
+ useDefault: "",
+ subpartitions: [],
+ };
+}
+
+export const BranchTablePartitionMetadata = {
+ encode(message: BranchTablePartitionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.type !== BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED) {
+ writer.uint32(16).int32(branchTablePartitionMetadata_TypeToNumber(message.type));
+ }
+ if (message.expression !== "") {
+ writer.uint32(26).string(message.expression);
+ }
+ if (message.value !== "") {
+ writer.uint32(34).string(message.value);
+ }
+ if (message.useDefault !== "") {
+ writer.uint32(42).string(message.useDefault);
+ }
+ for (const v of message.subpartitions) {
+ BranchTablePartitionMetadata.encode(v!, writer.uint32(50).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchTablePartitionMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchTablePartitionMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.type = branchTablePartitionMetadata_TypeFromJSON(reader.int32());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.expression = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.value = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.useDefault = reader.string();
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.subpartitions.push(BranchTablePartitionMetadata.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchTablePartitionMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ type: isSet(object.type)
+ ? branchTablePartitionMetadata_TypeFromJSON(object.type)
+ : BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED,
+ expression: isSet(object.expression) ? globalThis.String(object.expression) : "",
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
+ useDefault: isSet(object.useDefault) ? globalThis.String(object.useDefault) : "",
+ subpartitions: globalThis.Array.isArray(object?.subpartitions)
+ ? object.subpartitions.map((e: any) => BranchTablePartitionMetadata.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: BranchTablePartitionMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.type !== BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED) {
+ obj.type = branchTablePartitionMetadata_TypeToJSON(message.type);
+ }
+ if (message.expression !== "") {
+ obj.expression = message.expression;
+ }
+ if (message.value !== "") {
+ obj.value = message.value;
+ }
+ if (message.useDefault !== "") {
+ obj.useDefault = message.useDefault;
+ }
+ if (message.subpartitions?.length) {
+ obj.subpartitions = message.subpartitions.map((e) => BranchTablePartitionMetadata.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchTablePartitionMetadata>): BranchTablePartitionMetadata {
+ return BranchTablePartitionMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchTablePartitionMetadata>): BranchTablePartitionMetadata {
+ const message = createBaseBranchTablePartitionMetadata();
+ message.name = object.name ?? "";
+ message.type = object.type ?? BranchTablePartitionMetadata_Type.TYPE_UNSPECIFIED;
+ message.expression = object.expression ?? "";
+ message.value = object.value ?? "";
+ message.useDefault = object.useDefault ?? "";
+ message.subpartitions = object.subpartitions?.map((e) => BranchTablePartitionMetadata.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseBranchColumnMetadata(): BranchColumnMetadata {
+ return {
+ name: "",
+ position: 0,
+ default: undefined,
+ defaultNull: undefined,
+ defaultExpression: undefined,
+ onUpdate: "",
+ nullable: false,
+ type: "",
+ characterSet: "",
+ collation: "",
+ comment: "",
+ classification: "",
+ userComment: "",
+ };
+}
+
+export const BranchColumnMetadata = {
+ encode(message: BranchColumnMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.position !== 0) {
+ writer.uint32(16).int32(message.position);
+ }
+ if (message.default !== undefined) {
+ StringValue.encode({ value: message.default! }, writer.uint32(26).fork()).ldelim();
+ }
+ if (message.defaultNull !== undefined) {
+ writer.uint32(32).bool(message.defaultNull);
+ }
+ if (message.defaultExpression !== undefined) {
+ writer.uint32(42).string(message.defaultExpression);
+ }
+ if (message.onUpdate !== "") {
+ writer.uint32(106).string(message.onUpdate);
+ }
+ if (message.nullable === true) {
+ writer.uint32(48).bool(message.nullable);
+ }
+ if (message.type !== "") {
+ writer.uint32(58).string(message.type);
+ }
+ if (message.characterSet !== "") {
+ writer.uint32(66).string(message.characterSet);
+ }
+ if (message.collation !== "") {
+ writer.uint32(74).string(message.collation);
+ }
+ if (message.comment !== "") {
+ writer.uint32(82).string(message.comment);
+ }
+ if (message.classification !== "") {
+ writer.uint32(90).string(message.classification);
+ }
+ if (message.userComment !== "") {
+ writer.uint32(98).string(message.userComment);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchColumnMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchColumnMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.position = reader.int32();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.default = StringValue.decode(reader, reader.uint32()).value;
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.defaultNull = reader.bool();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.defaultExpression = reader.string();
+ continue;
+ case 13:
+ if (tag !== 106) {
+ break;
+ }
+
+ message.onUpdate = reader.string();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.nullable = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.type = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.characterSet = reader.string();
+ continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.collation = reader.string();
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.classification = reader.string();
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.userComment = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchColumnMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ position: isSet(object.position) ? globalThis.Number(object.position) : 0,
+ default: isSet(object.default) ? String(object.default) : undefined,
+ defaultNull: isSet(object.defaultNull) ? globalThis.Boolean(object.defaultNull) : undefined,
+ defaultExpression: isSet(object.defaultExpression) ? globalThis.String(object.defaultExpression) : undefined,
+ onUpdate: isSet(object.onUpdate) ? globalThis.String(object.onUpdate) : "",
+ nullable: isSet(object.nullable) ? globalThis.Boolean(object.nullable) : false,
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
+ characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",
+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",
+ userComment: isSet(object.userComment) ? globalThis.String(object.userComment) : "",
+ };
+ },
+
+ toJSON(message: BranchColumnMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.position !== 0) {
+ obj.position = Math.round(message.position);
+ }
+ if (message.default !== undefined) {
+ obj.default = message.default;
+ }
+ if (message.defaultNull !== undefined) {
+ obj.defaultNull = message.defaultNull;
+ }
+ if (message.defaultExpression !== undefined) {
+ obj.defaultExpression = message.defaultExpression;
+ }
+ if (message.onUpdate !== "") {
+ obj.onUpdate = message.onUpdate;
+ }
+ if (message.nullable === true) {
+ obj.nullable = message.nullable;
+ }
+ if (message.type !== "") {
+ obj.type = message.type;
+ }
+ if (message.characterSet !== "") {
+ obj.characterSet = message.characterSet;
+ }
+ if (message.collation !== "") {
+ obj.collation = message.collation;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.classification !== "") {
+ obj.classification = message.classification;
+ }
+ if (message.userComment !== "") {
+ obj.userComment = message.userComment;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchColumnMetadata>): BranchColumnMetadata {
+ return BranchColumnMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchColumnMetadata>): BranchColumnMetadata {
+ const message = createBaseBranchColumnMetadata();
+ message.name = object.name ?? "";
+ message.position = object.position ?? 0;
+ message.default = object.default ?? undefined;
+ message.defaultNull = object.defaultNull ?? undefined;
+ message.defaultExpression = object.defaultExpression ?? undefined;
+ message.onUpdate = object.onUpdate ?? "";
+ message.nullable = object.nullable ?? false;
+ message.type = object.type ?? "";
+ message.characterSet = object.characterSet ?? "";
+ message.collation = object.collation ?? "";
+ message.comment = object.comment ?? "";
+ message.classification = object.classification ?? "";
+ message.userComment = object.userComment ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchViewMetadata(): BranchViewMetadata {
+ return { name: "", definition: "", comment: "", dependentColumns: [], updater: "", updateTime: undefined };
+}
+
+export const BranchViewMetadata = {
+ encode(message: BranchViewMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.definition !== "") {
+ writer.uint32(18).string(message.definition);
+ }
+ if (message.comment !== "") {
+ writer.uint32(26).string(message.comment);
+ }
+ for (const v of message.dependentColumns) {
+ BranchDependentColumn.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ if (message.updater !== "") {
+ writer.uint32(42).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(50).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchViewMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchViewMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.dependentColumns.push(BranchDependentColumn.decode(reader, reader.uint32()));
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchViewMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ dependentColumns: globalThis.Array.isArray(object?.dependentColumns)
+ ? object.dependentColumns.map((e: any) => BranchDependentColumn.fromJSON(e))
+ : [],
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchViewMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.dependentColumns?.length) {
+ obj.dependentColumns = message.dependentColumns.map((e) => BranchDependentColumn.toJSON(e));
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchViewMetadata>): BranchViewMetadata {
+ return BranchViewMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchViewMetadata>): BranchViewMetadata {
+ const message = createBaseBranchViewMetadata();
+ message.name = object.name ?? "";
+ message.definition = object.definition ?? "";
+ message.comment = object.comment ?? "";
+ message.dependentColumns = object.dependentColumns?.map((e) => BranchDependentColumn.fromPartial(e)) || [];
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchDependentColumn(): BranchDependentColumn {
+ return { schema: "", table: "", column: "" };
+}
+
+export const BranchDependentColumn = {
+ encode(message: BranchDependentColumn, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.schema !== "") {
+ writer.uint32(10).string(message.schema);
+ }
+ if (message.table !== "") {
+ writer.uint32(18).string(message.table);
+ }
+ if (message.column !== "") {
+ writer.uint32(26).string(message.column);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchDependentColumn {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchDependentColumn();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.schema = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.table = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.column = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchDependentColumn {
+ return {
+ schema: isSet(object.schema) ? globalThis.String(object.schema) : "",
+ table: isSet(object.table) ? globalThis.String(object.table) : "",
+ column: isSet(object.column) ? globalThis.String(object.column) : "",
+ };
+ },
+
+ toJSON(message: BranchDependentColumn): unknown {
+ const obj: any = {};
+ if (message.schema !== "") {
+ obj.schema = message.schema;
+ }
+ if (message.table !== "") {
+ obj.table = message.table;
+ }
+ if (message.column !== "") {
+ obj.column = message.column;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchDependentColumn>): BranchDependentColumn {
+ return BranchDependentColumn.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchDependentColumn>): BranchDependentColumn {
+ const message = createBaseBranchDependentColumn();
+ message.schema = object.schema ?? "";
+ message.table = object.table ?? "";
+ message.column = object.column ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchMaterializedViewMetadata(): BranchMaterializedViewMetadata {
+ return { name: "", definition: "", comment: "", dependentColumns: [] };
+}
+
+export const BranchMaterializedViewMetadata = {
+ encode(message: BranchMaterializedViewMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.definition !== "") {
+ writer.uint32(18).string(message.definition);
+ }
+ if (message.comment !== "") {
+ writer.uint32(26).string(message.comment);
+ }
+ for (const v of message.dependentColumns) {
+ BranchDependentColumn.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchMaterializedViewMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchMaterializedViewMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.dependentColumns.push(BranchDependentColumn.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchMaterializedViewMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ dependentColumns: globalThis.Array.isArray(object?.dependentColumns)
+ ? object.dependentColumns.map((e: any) => BranchDependentColumn.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: BranchMaterializedViewMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.dependentColumns?.length) {
+ obj.dependentColumns = message.dependentColumns.map((e) => BranchDependentColumn.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchMaterializedViewMetadata>): BranchMaterializedViewMetadata {
+ return BranchMaterializedViewMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchMaterializedViewMetadata>): BranchMaterializedViewMetadata {
+ const message = createBaseBranchMaterializedViewMetadata();
+ message.name = object.name ?? "";
+ message.definition = object.definition ?? "";
+ message.comment = object.comment ?? "";
+ message.dependentColumns = object.dependentColumns?.map((e) => BranchDependentColumn.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseBranchFunctionMetadata(): BranchFunctionMetadata {
+ return { name: "", definition: "", updater: "", updateTime: undefined };
+}
+
+export const BranchFunctionMetadata = {
+ encode(message: BranchFunctionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.definition !== "") {
+ writer.uint32(18).string(message.definition);
+ }
+ if (message.updater !== "") {
+ writer.uint32(26).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchFunctionMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchFunctionMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchFunctionMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchFunctionMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchFunctionMetadata>): BranchFunctionMetadata {
+ return BranchFunctionMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchFunctionMetadata>): BranchFunctionMetadata {
+ const message = createBaseBranchFunctionMetadata();
+ message.name = object.name ?? "";
+ message.definition = object.definition ?? "";
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchProcedureMetadata(): BranchProcedureMetadata {
+ return { name: "", definition: "", updater: "", updateTime: undefined };
+}
+
+export const BranchProcedureMetadata = {
+ encode(message: BranchProcedureMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.definition !== "") {
+ writer.uint32(18).string(message.definition);
+ }
+ if (message.updater !== "") {
+ writer.uint32(26).string(message.updater);
+ }
+ if (message.updateTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchProcedureMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchProcedureMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.updater = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchProcedureMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
+ };
+ },
+
+ toJSON(message: BranchProcedureMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ if (message.updater !== "") {
+ obj.updater = message.updater;
+ }
+ if (message.updateTime !== undefined) {
+ obj.updateTime = message.updateTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchProcedureMetadata>): BranchProcedureMetadata {
+ return BranchProcedureMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchProcedureMetadata>): BranchProcedureMetadata {
+ const message = createBaseBranchProcedureMetadata();
+ message.name = object.name ?? "";
+ message.definition = object.definition ?? "";
+ message.updater = object.updater ?? "";
+ message.updateTime = object.updateTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseBranchIndexMetadata(): BranchIndexMetadata {
+ return {
+ name: "",
+ expressions: [],
+ keyLength: [],
+ type: "",
+ unique: false,
+ primary: false,
+ visible: false,
+ comment: "",
+ definition: "",
+ };
+}
+
+export const BranchIndexMetadata = {
+ encode(message: BranchIndexMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.expressions) {
+ writer.uint32(18).string(v!);
+ }
+ writer.uint32(74).fork();
+ for (const v of message.keyLength) {
+ writer.int64(v);
+ }
+ writer.ldelim();
+ if (message.type !== "") {
+ writer.uint32(26).string(message.type);
+ }
+ if (message.unique === true) {
+ writer.uint32(32).bool(message.unique);
+ }
+ if (message.primary === true) {
+ writer.uint32(40).bool(message.primary);
+ }
+ if (message.visible === true) {
+ writer.uint32(48).bool(message.visible);
+ }
+ if (message.comment !== "") {
+ writer.uint32(58).string(message.comment);
+ }
+ if (message.definition !== "") {
+ writer.uint32(66).string(message.definition);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchIndexMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchIndexMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.expressions.push(reader.string());
+ continue;
+ case 9:
+ if (tag === 72) {
+ message.keyLength.push(reader.int64() as Long);
+
+ continue;
+ }
+
+ if (tag === 74) {
+ const end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2) {
+ message.keyLength.push(reader.int64() as Long);
+ }
+
+ continue;
+ }
+
+ break;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.type = reader.string();
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.unique = reader.bool();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.primary = reader.bool();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.visible = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.definition = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchIndexMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ expressions: globalThis.Array.isArray(object?.expressions)
+ ? object.expressions.map((e: any) => globalThis.String(e))
+ : [],
+ keyLength: globalThis.Array.isArray(object?.keyLength) ? object.keyLength.map((e: any) => Long.fromValue(e)) : [],
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
+ unique: isSet(object.unique) ? globalThis.Boolean(object.unique) : false,
+ primary: isSet(object.primary) ? globalThis.Boolean(object.primary) : false,
+ visible: isSet(object.visible) ? globalThis.Boolean(object.visible) : false,
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",
+ };
+ },
+
+ toJSON(message: BranchIndexMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.expressions?.length) {
+ obj.expressions = message.expressions;
+ }
+ if (message.keyLength?.length) {
+ obj.keyLength = message.keyLength.map((e) => (e || Long.ZERO).toString());
+ }
+ if (message.type !== "") {
+ obj.type = message.type;
+ }
+ if (message.unique === true) {
+ obj.unique = message.unique;
+ }
+ if (message.primary === true) {
+ obj.primary = message.primary;
+ }
+ if (message.visible === true) {
+ obj.visible = message.visible;
+ }
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.definition !== "") {
+ obj.definition = message.definition;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchIndexMetadata>): BranchIndexMetadata {
+ return BranchIndexMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchIndexMetadata>): BranchIndexMetadata {
+ const message = createBaseBranchIndexMetadata();
+ message.name = object.name ?? "";
+ message.expressions = object.expressions?.map((e) => e) || [];
+ message.keyLength = object.keyLength?.map((e) => Long.fromValue(e)) || [];
+ message.type = object.type ?? "";
+ message.unique = object.unique ?? false;
+ message.primary = object.primary ?? false;
+ message.visible = object.visible ?? false;
+ message.comment = object.comment ?? "";
+ message.definition = object.definition ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchExtensionMetadata(): BranchExtensionMetadata {
+ return { name: "", schema: "", version: "", description: "" };
+}
+
+export const BranchExtensionMetadata = {
+ encode(message: BranchExtensionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.schema !== "") {
+ writer.uint32(18).string(message.schema);
+ }
+ if (message.version !== "") {
+ writer.uint32(26).string(message.version);
+ }
+ if (message.description !== "") {
+ writer.uint32(34).string(message.description);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchExtensionMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchExtensionMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.schema = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.version = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.description = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchExtensionMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ schema: isSet(object.schema) ? globalThis.String(object.schema) : "",
+ version: isSet(object.version) ? globalThis.String(object.version) : "",
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
+ };
+ },
+
+ toJSON(message: BranchExtensionMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.schema !== "") {
+ obj.schema = message.schema;
+ }
+ if (message.version !== "") {
+ obj.version = message.version;
+ }
+ if (message.description !== "") {
+ obj.description = message.description;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchExtensionMetadata>): BranchExtensionMetadata {
+ return BranchExtensionMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchExtensionMetadata>): BranchExtensionMetadata {
+ const message = createBaseBranchExtensionMetadata();
+ message.name = object.name ?? "";
+ message.schema = object.schema ?? "";
+ message.version = object.version ?? "";
+ message.description = object.description ?? "";
+ return message;
+ },
+};
+
+function createBaseBranchForeignKeyMetadata(): BranchForeignKeyMetadata {
+ return {
+ name: "",
+ columns: [],
+ referencedSchema: "",
+ referencedTable: "",
+ referencedColumns: [],
+ onDelete: "",
+ onUpdate: "",
+ matchType: "",
+ };
+}
+
+export const BranchForeignKeyMetadata = {
+ encode(message: BranchForeignKeyMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ for (const v of message.columns) {
+ writer.uint32(18).string(v!);
+ }
+ if (message.referencedSchema !== "") {
+ writer.uint32(26).string(message.referencedSchema);
+ }
+ if (message.referencedTable !== "") {
+ writer.uint32(34).string(message.referencedTable);
+ }
+ for (const v of message.referencedColumns) {
+ writer.uint32(42).string(v!);
+ }
+ if (message.onDelete !== "") {
+ writer.uint32(50).string(message.onDelete);
+ }
+ if (message.onUpdate !== "") {
+ writer.uint32(58).string(message.onUpdate);
+ }
+ if (message.matchType !== "") {
+ writer.uint32(66).string(message.matchType);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): BranchForeignKeyMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseBranchForeignKeyMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.columns.push(reader.string());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.referencedSchema = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.referencedTable = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.referencedColumns.push(reader.string());
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.onDelete = reader.string();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.onUpdate = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.matchType = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): BranchForeignKeyMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ columns: globalThis.Array.isArray(object?.columns) ? object.columns.map((e: any) => globalThis.String(e)) : [],
+ referencedSchema: isSet(object.referencedSchema) ? globalThis.String(object.referencedSchema) : "",
+ referencedTable: isSet(object.referencedTable) ? globalThis.String(object.referencedTable) : "",
+ referencedColumns: globalThis.Array.isArray(object?.referencedColumns)
+ ? object.referencedColumns.map((e: any) => globalThis.String(e))
+ : [],
+ onDelete: isSet(object.onDelete) ? globalThis.String(object.onDelete) : "",
+ onUpdate: isSet(object.onUpdate) ? globalThis.String(object.onUpdate) : "",
+ matchType: isSet(object.matchType) ? globalThis.String(object.matchType) : "",
+ };
+ },
+
+ toJSON(message: BranchForeignKeyMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.columns?.length) {
+ obj.columns = message.columns;
+ }
+ if (message.referencedSchema !== "") {
+ obj.referencedSchema = message.referencedSchema;
+ }
+ if (message.referencedTable !== "") {
+ obj.referencedTable = message.referencedTable;
+ }
+ if (message.referencedColumns?.length) {
+ obj.referencedColumns = message.referencedColumns;
+ }
+ if (message.onDelete !== "") {
+ obj.onDelete = message.onDelete;
+ }
+ if (message.onUpdate !== "") {
+ obj.onUpdate = message.onUpdate;
+ }
+ if (message.matchType !== "") {
+ obj.matchType = message.matchType;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<BranchForeignKeyMetadata>): BranchForeignKeyMetadata {
+ return BranchForeignKeyMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<BranchForeignKeyMetadata>): BranchForeignKeyMetadata {
+ const message = createBaseBranchForeignKeyMetadata();
+ message.name = object.name ?? "";
+ message.columns = object.columns?.map((e) => e) || [];
+ message.referencedSchema = object.referencedSchema ?? "";
+ message.referencedTable = object.referencedTable ?? "";
+ message.referencedColumns = object.referencedColumns?.map((e) => e) || [];
+ message.onDelete = object.onDelete ?? "";
+ message.onUpdate = object.onUpdate ?? "";
+ message.matchType = object.matchType ?? "";
+ return message;
+ },
+};
+
export type BranchServiceDefinition = typeof BranchServiceDefinition;
export const BranchServiceDefinition = {
name: "BranchService",
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 6dd6a1977a..71c0b1da53 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -68,8 +68,29 @@
- [TaskMetadata.State](#bytebase-store-TaskMetadata-State)
- [store/branch.proto](#store_branch-proto)
+ - [BranchColumnMetadata](#bytebase-store-BranchColumnMetadata)
- [BranchConfig](#bytebase-store-BranchConfig)
+ - [BranchDatabaseSchemaMetadata](#bytebase-store-BranchDatabaseSchemaMetadata)
+ - [BranchDependentColumn](#bytebase-store-BranchDependentColumn)
+ - [BranchExtensionMetadata](#bytebase-store-BranchExtensionMetadata)
+ - [BranchExternalTableMetadata](#bytebase-store-BranchExternalTableMetadata)
+ - [BranchForeignKeyMetadata](#bytebase-store-BranchForeignKeyMetadata)
+ - [BranchFunctionMetadata](#bytebase-store-BranchFunctionMetadata)
+ - [BranchIndexMetadata](#bytebase-store-BranchIndexMetadata)
+ - [BranchMaterializedViewMetadata](#bytebase-store-BranchMaterializedViewMetadata)
+ - [BranchProcedureMetadata](#bytebase-store-BranchProcedureMetadata)
+ - [BranchSchemaMetadata](#bytebase-store-BranchSchemaMetadata)
- [BranchSnapshot](#bytebase-store-BranchSnapshot)
+ - [BranchStreamMetadata](#bytebase-store-BranchStreamMetadata)
+ - [BranchTableMetadata](#bytebase-store-BranchTableMetadata)
+ - [BranchTablePartitionMetadata](#bytebase-store-BranchTablePartitionMetadata)
+ - [BranchTaskMetadata](#bytebase-store-BranchTaskMetadata)
+ - [BranchViewMetadata](#bytebase-store-BranchViewMetadata)
+
+ - [BranchStreamMetadata.Mode](#bytebase-store-BranchStreamMetadata-Mode)
+ - [BranchStreamMetadata.Type](#bytebase-store-BranchStreamMetadata-Type)
+ - [BranchTablePartitionMetadata.Type](#bytebase-store-BranchTablePartitionMetadata-Type)
+ - [BranchTaskMetadata.State](#bytebase-store-BranchTaskMetadata-State)
- [store/changelist.proto](#store_changelist-proto)
- [Changelist](#bytebase-store-Changelist)
@@ -1247,6 +1268,33 @@ PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-parti
+<a name="bytebase-store-BranchColumnMetadata"></a>
+
+### BranchColumnMetadata
+BranchColumnMetadata is the metadata for columns used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a column. |
+| position | [int32](#int32) | | The position is the position in columns. |
+| default | [google.protobuf.StringValue](#google-protobuf-StringValue) | | The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. |
+| default_null | [bool](#bool) | | |
+| default_expression | [string](#string) | | |
+| on_update | [string](#string) | | The on_update is the on update action of a column. For MySQL like databases, it&#39;s only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value. |
+| nullable | [bool](#bool) | | The nullable is the nullable of a column. |
+| type | [string](#string) | | The type is the type of a column. |
+| character_set | [string](#string) | | The character_set is the character_set of a column. |
+| collation | [string](#string) | | The collation is the collation of a column. |
+| comment | [string](#string) | | The comment is the comment of a column. classification and user_comment is parsed from the comment. |
+| classification | [string](#string) | | The classification is the classification of a table parsed from the comment. |
+| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |
+
+
+
+
+
+
<a name="bytebase-store-BranchConfig"></a>
### BranchConfig
@@ -1263,6 +1311,205 @@ PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-parti
+<a name="bytebase-store-BranchDatabaseSchemaMetadata"></a>
+
+### BranchDatabaseSchemaMetadata
+BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | |
+| schemas | [BranchSchemaMetadata](#bytebase-store-BranchSchemaMetadata) | repeated | The schemas is the list of schemas in a database. |
+| character_set | [string](#string) | | The character_set is the character set of a database. |
+| collation | [string](#string) | | The collation is the collation of a database. |
+| extensions | [ExtensionMetadata](#bytebase-store-ExtensionMetadata) | repeated | The extensions is the list of extensions in a database. |
+| datashare | [bool](#bool) | | The database belongs to a datashare. |
+| service_name | [string](#string) | | The service name of the database. It&#39;s the Oracle specific concept. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchDependentColumn"></a>
+
+### BranchDependentColumn
+BranchDependentColumn is the metadata for dependent columns used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| schema | [string](#string) | | The schema is the schema of a reference column. |
+| table | [string](#string) | | The table is the table of a reference column. |
+| column | [string](#string) | | The column is the name of a reference column. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchExtensionMetadata"></a>
+
+### BranchExtensionMetadata
+BranchExtensionMetadata is the metadata for extensions used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of an extension. |
+| schema | [string](#string) | | The schema is the extension that is installed to. But the extension usage is not limited to the schema. |
+| version | [string](#string) | | The version is the version of an extension. |
+| description | [string](#string) | | The description is the description of an extension. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchExternalTableMetadata"></a>
+
+### BranchExternalTableMetadata
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a external table. |
+| external_server_name | [string](#string) | | The external_server_name is the name of the external server. |
+| external_database_name | [string](#string) | | The external_database_name is the name of the external database. |
+| columns | [BranchColumnMetadata](#bytebase-store-BranchColumnMetadata) | repeated | The columns is the ordered list of columns in a foreign table. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchForeignKeyMetadata"></a>
+
+### BranchForeignKeyMetadata
+BranchForeignKeyMetadata is the metadata for foreign keys used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a foreign key. |
+| columns | [string](#string) | repeated | The columns are the ordered referencing columns of a foreign key. |
+| referenced_schema | [string](#string) | | The referenced_schema is the referenced schema name of a foreign key. It is an empty string for databases without such concept such as MySQL. |
+| referenced_table | [string](#string) | | The referenced_table is the referenced table name of a foreign key. |
+| referenced_columns | [string](#string) | repeated | The referenced_columns are the ordered referenced columns of a foreign key. |
+| on_delete | [string](#string) | | The on_delete is the on delete action of a foreign key. |
+| on_update | [string](#string) | | The on_update is the on update action of a foreign key. |
+| match_type | [string](#string) | | The match_type is the match type of a foreign key. The match_type is the PostgreSQL specific field. It&#39;s empty string for other databases. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchFunctionMetadata"></a>
+
+### BranchFunctionMetadata
+BranchFunctionMetadata is the metadata for functions used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a function. |
+| definition | [string](#string) | | The definition is the definition of a function. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchIndexMetadata"></a>
+
+### BranchIndexMetadata
+BranchIndexMetadata is the metadata for indexes used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of an index. |
+| expressions | [string](#string) | repeated | The expressions are the ordered columns or expressions of an index. This could refer to a column or an expression. |
+| key_length | [int64](#int64) | repeated | The key_lengths are the ordered key lengths of an index. If the key length is not specified, it&#39;s -1. |
+| type | [string](#string) | | The type is the type of an index. |
+| unique | [bool](#bool) | | The unique is whether the index is unique. |
+| primary | [bool](#bool) | | The primary is whether the index is a primary key index. |
+| visible | [bool](#bool) | | The visible is whether the index is visible. |
+| comment | [string](#string) | | The comment is the comment of an index. |
+| definition | [string](#string) | | The definition of an index. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchMaterializedViewMetadata"></a>
+
+### BranchMaterializedViewMetadata
+BranchMaterializedViewMetadata is the metadata for materialized views used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a view. |
+| definition | [string](#string) | | The definition is the definition of a view. |
+| comment | [string](#string) | | The comment is the comment of a view. |
+| dependent_columns | [BranchDependentColumn](#bytebase-store-BranchDependentColumn) | repeated | The dependent_columns is the list of dependent columns of a view. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchProcedureMetadata"></a>
+
+### BranchProcedureMetadata
+BranchProcedureMetadata is the metadata for procedures used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a procedure. |
+| definition | [string](#string) | | The definition is the definition of a procedure. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchSchemaMetadata"></a>
+
+### BranchSchemaMetadata
+BranchSchemaMetadata is the metadata for schemas used in branch.
+This is the concept of schema in Postgres, but it&#39;s a no-op for MySQL.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |
+| tables | [BranchTableMetadata](#bytebase-store-BranchTableMetadata) | repeated | The tables is the list of tables in a schema. |
+| external_tables | [BranchExternalTableMetadata](#bytebase-store-BranchExternalTableMetadata) | repeated | The external_tables is the list of external tables in a schema. |
+| views | [BranchViewMetadata](#bytebase-store-BranchViewMetadata) | repeated | The views is the list of views in a schema. |
+| functions | [BranchFunctionMetadata](#bytebase-store-BranchFunctionMetadata) | repeated | The functions is the list of functions in a schema. |
+| procedures | [BranchProcedureMetadata](#bytebase-store-BranchProcedureMetadata) | repeated | The procedures is the list of procedures in a schema. |
+| streams | [BranchStreamMetadata](#bytebase-store-BranchStreamMetadata) | repeated | The streams is the list of streams in a schema, currently, only used for Snowflake. |
+| tasks | [BranchTaskMetadata](#bytebase-store-BranchTaskMetadata) | repeated | The routines is the list of routines in a schema, currently, only used for Snowflake. |
+| materialized_views | [BranchMaterializedViewMetadata](#bytebase-store-BranchMaterializedViewMetadata) | repeated | The materialized_views is the list of materialized views in a schema. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
<a name="bytebase-store-BranchSnapshot"></a>
### BranchSnapshot
@@ -1278,8 +1525,187 @@ PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-parti
+
+<a name="bytebase-store-BranchStreamMetadata"></a>
+
+### BranchStreamMetadata
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a stream. |
+| table_name | [string](#string) | | The table_name is the name of the table/view that the stream is created on. |
+| owner | [string](#string) | | The owner of the stream. |
+| comment | [string](#string) | | The comment of the stream. |
+| type | [BranchStreamMetadata.Type](#bytebase-store-BranchStreamMetadata-Type) | | The type of the stream. |
+| stale | [bool](#bool) | | Indicates whether the stream was last read before the `stale_after` time. |
+| mode | [BranchStreamMetadata.Mode](#bytebase-store-BranchStreamMetadata-Mode) | | The mode of the stream. |
+| definition | [string](#string) | | The definition of the stream. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchTableMetadata"></a>
+
+### BranchTableMetadata
+BranchTableMetadata is the metadata for tables used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a table. |
+| columns | [BranchColumnMetadata](#bytebase-store-BranchColumnMetadata) | repeated | The columns is the ordered list of columns in a table. |
+| indexes | [BranchIndexMetadata](#bytebase-store-BranchIndexMetadata) | repeated | The indexes is the list of indexes in a table. |
+| engine | [string](#string) | | The engine is the engine of a table. |
+| collation | [string](#string) | | The collation is the collation of a table. |
+| row_count | [int64](#int64) | | The row_count is the estimated number of rows of a table. |
+| data_size | [int64](#int64) | | The data_size is the estimated data size of a table. |
+| index_size | [int64](#int64) | | The index_size is the estimated index size of a table. |
+| data_free | [int64](#int64) | | The data_free is the estimated free data size of a table. |
+| create_options | [string](#string) | | The create_options is the create option of a table. |
+| comment | [string](#string) | | The comment is the comment of a table. classification and user_comment is parsed from the comment. |
+| classification | [string](#string) | | The classification is the classification of a table parsed from the comment. |
+| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |
+| foreign_keys | [BranchForeignKeyMetadata](#bytebase-store-BranchForeignKeyMetadata) | repeated | The foreign_keys is the list of foreign keys in a table. |
+| partitions | [BranchTablePartitionMetadata](#bytebase-store-BranchTablePartitionMetadata) | repeated | The partitions is the list of partitions in a table. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchTablePartitionMetadata"></a>
+
+### BranchTablePartitionMetadata
+BranchTablePartitionMetadata is the metadata for table partitions used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a table partition. |
+| type | [BranchTablePartitionMetadata.Type](#bytebase-store-BranchTablePartitionMetadata-Type) | | The type of a table partition. |
+| expression | [string](#string) | | The expression is the expression of a table partition. For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html. For MySQL, the expression is the `expr` or `column_list` of the following syntax. PARTITION BY { [LINEAR] HASH(expr) | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list) | RANGE{(expr) | COLUMNS(column_list)} | LIST{(expr) | COLUMNS(column_list)} }. |
+| value | [string](#string) | | The value is the value of a table partition. For MySQL, the value is for RANGE and LIST partition types, - For a RANGE partition, it contains the value set in the partition&#39;s VALUES LESS THAN clause, which can be either an integer or MAXVALUE. - For a LIST partition, this column contains the values defined in the partition&#39;s VALUES IN clause, which is a list of comma-separated integer values. - For others, it&#39;s an empty string. |
+| use_default | [string](#string) | | The use_default is whether the users use the default partition, it stores the different value for different database engines. For MySQL, it&#39;s [INT] type, 0 means not use default partition, otherwise, it&#39;s equals to number in syntax [SUB]PARTITION {number}. |
+| subpartitions | [BranchTablePartitionMetadata](#bytebase-store-BranchTablePartitionMetadata) | repeated | The subpartitions is the list of subpartitions in a table partition. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchTaskMetadata"></a>
+
+### BranchTaskMetadata
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a task. |
+| id | [string](#string) | | The id is the snowflake-generated id of a task. Example: 01ad32a0-1bb6-5e93-0000-000000000001 |
+| owner | [string](#string) | | The owner of the task. |
+| comment | [string](#string) | | The comment of the task. |
+| warehouse | [string](#string) | | The warehouse of the task. |
+| schedule | [string](#string) | | The schedule interval of the task. |
+| predecessors | [string](#string) | repeated | The predecessor tasks of the task. |
+| state | [BranchTaskMetadata.State](#bytebase-store-BranchTaskMetadata-State) | | The state of the task. |
+| condition | [string](#string) | | The condition of the task. |
+| definition | [string](#string) | | The definition of the task. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchViewMetadata"></a>
+
+### BranchViewMetadata
+BranchViewMetadata is the metadata for views used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a view. |
+| definition | [string](#string) | | The definition is the definition of a view. |
+| comment | [string](#string) | | The comment is the comment of a view. |
+| dependent_columns | [BranchDependentColumn](#bytebase-store-BranchDependentColumn) | repeated | The dependent_columns is the list of dependent columns of a view. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
+<a name="bytebase-store-BranchStreamMetadata-Mode"></a>
+
+### BranchStreamMetadata.Mode
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| MODE_UNSPECIFIED | 0 | |
+| MODE_DEFAULT | 1 | |
+| MODE_APPEND_ONLY | 2 | |
+| MODE_INSERT_ONLY | 3 | |
+
+
+
+<a name="bytebase-store-BranchStreamMetadata-Type"></a>
+
+### BranchStreamMetadata.Type
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| TYPE_UNSPECIFIED | 0 | |
+| TYPE_DELTA | 1 | |
+
+
+
+<a name="bytebase-store-BranchTablePartitionMetadata-Type"></a>
+
+### BranchTablePartitionMetadata.Type
+Type is the type of a table partition, some database engines may not support all types.
+Only avilable for the following database engines now:
+MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)
+TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY
+PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| TYPE_UNSPECIFIED | 0 | |
+| RANGE | 1 | |
+| RANGE_COLUMNS | 2 | |
+| LIST | 3 | |
+| LIST_COLUMNS | 4 | |
+| HASH | 5 | |
+| LINEAR_HASH | 6 | |
+| KEY | 7 | |
+| LINEAR_KEY | 8 | |
+
+
+
+<a name="bytebase-store-BranchTaskMetadata-State"></a>
+
+### BranchTaskMetadata.State
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| STATE_UNSPECIFIED | 0 | |
+| STATE_STARTED | 1 | |
+| STATE_SUSPENDED | 2 | |
+
+
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 045bd3ae91..45837d08d0 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -430,14 +430,94 @@
<a href="#store%2fbranch.proto">store/branch.proto</a>
<ul>
+ <li>
+ <a href="#bytebase.store.BranchColumnMetadata"><span class="badge">M</span>BranchColumnMetadata</a>
+ </li>
+
<li>
<a href="#bytebase.store.BranchConfig"><span class="badge">M</span>BranchConfig</a>
</li>
+ <li>
+ <a href="#bytebase.store.BranchDatabaseSchemaMetadata"><span class="badge">M</span>BranchDatabaseSchemaMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchDependentColumn"><span class="badge">M</span>BranchDependentColumn</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchExtensionMetadata"><span class="badge">M</span>BranchExtensionMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchExternalTableMetadata"><span class="badge">M</span>BranchExternalTableMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchForeignKeyMetadata"><span class="badge">M</span>BranchForeignKeyMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchFunctionMetadata"><span class="badge">M</span>BranchFunctionMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchIndexMetadata"><span class="badge">M</span>BranchIndexMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchMaterializedViewMetadata"><span class="badge">M</span>BranchMaterializedViewMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchProcedureMetadata"><span class="badge">M</span>BranchProcedureMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchSchemaMetadata"><span class="badge">M</span>BranchSchemaMetadata</a>
+ </li>
+
<li>
<a href="#bytebase.store.BranchSnapshot"><span class="badge">M</span>BranchSnapshot</a>
</li>
+ <li>
+ <a href="#bytebase.store.BranchStreamMetadata"><span class="badge">M</span>BranchStreamMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchTableMetadata"><span class="badge">M</span>BranchTableMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchTablePartitionMetadata"><span class="badge">M</span>BranchTablePartitionMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchTaskMetadata"><span class="badge">M</span>BranchTaskMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchViewMetadata"><span class="badge">M</span>BranchViewMetadata</a>
+ </li>
+
+
+ <li>
+ <a href="#bytebase.store.BranchStreamMetadata.Mode"><span class="badge">E</span>BranchStreamMetadata.Mode</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchStreamMetadata.Type"><span class="badge">E</span>BranchStreamMetadata.Type</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchTablePartitionMetadata.Type"><span class="badge">E</span>BranchTablePartitionMetadata.Type</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.BranchTaskMetadata.State"><span class="badge">E</span>BranchTaskMetadata.State</a>
+ </li>
@@ -3608,6 +3688,116 @@ Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td>
<p></p>
+ <h3 id="bytebase.store.BranchColumnMetadata">BranchColumnMetadata</h3>
+ <p>BranchColumnMetadata is the metadata for columns used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>position</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>The position is the position in columns. </p></td>
+ </tr>
+
+ <tr>
+ <td>default</td>
+ <td><a href="#google.protobuf.StringValue">google.protobuf.StringValue</a></td>
+ <td></td>
+ <td><p>The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. </p></td>
+ </tr>
+
+ <tr>
+ <td>default_null</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>default_expression</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>on_update</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The on_update is the on update action of a column.
+For MySQL like databases, it&#39;s only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value. </p></td>
+ </tr>
+
+ <tr>
+ <td>nullable</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The nullable is the nullable of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The type is the type of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>character_set</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The character_set is the character_set of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>collation</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The collation is the collation of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of a column.
+classification and user_comment is parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>classification</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The classification is the classification of a table parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>user_comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The user_comment is the user comment of a table parsed from the comment. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.store.BranchConfig">BranchConfig</h3>
<p></p>
@@ -3643,8 +3833,8 @@ Example: projects/project-id/branches/branch-id. </p></td>
- <h3 id="bytebase.store.BranchSnapshot">BranchSnapshot</h3>
- <p></p>
+ <h3 id="bytebase.store.BranchDatabaseSchemaMetadata">BranchDatabaseSchemaMetadata</h3>
+ <p>BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch.</p>
<table class="field-table">
@@ -3654,17 +3844,90 @@ Example: projects/project-id/branches/branch-id. </p></td>
<tbody>
<tr>
- <td>metadata</td>
- <td><a href="#bytebase.store.DatabaseSchemaMetadata">DatabaseSchemaMetadata</a></td>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>database_config</td>
- <td><a href="#bytebase.store.DatabaseConfig">DatabaseConfig</a></td>
+ <td>schemas</td>
+ <td><a href="#bytebase.store.BranchSchemaMetadata">BranchSchemaMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The schemas is the list of schemas in a database. </p></td>
+ </tr>
+
+ <tr>
+ <td>character_set</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The character_set is the character set of a database. </p></td>
+ </tr>
+
+ <tr>
+ <td>collation</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The collation is the collation of a database. </p></td>
+ </tr>
+
+ <tr>
+ <td>extensions</td>
+ <td><a href="#bytebase.store.ExtensionMetadata">ExtensionMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The extensions is the list of extensions in a database. </p></td>
+ </tr>
+
+ <tr>
+ <td>datashare</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The database belongs to a datashare. </p></td>
+ </tr>
+
+ <tr>
+ <td>service_name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The service name of the database. It&#39;s the Oracle specific concept. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchDependentColumn">BranchDependentColumn</h3>
+ <p>BranchDependentColumn is the metadata for dependent columns used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>schema</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The schema is the schema of a reference column. </p></td>
+ </tr>
+
+ <tr>
+ <td>table</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The table is the table of a reference column. </p></td>
+ </tr>
+
+ <tr>
+ <td>column</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The column is the name of a reference column. </p></td>
</tr>
</tbody>
@@ -3674,7 +3937,1101 @@ Example: projects/project-id/branches/branch-id. </p></td>
+ <h3 id="bytebase.store.BranchExtensionMetadata">BranchExtensionMetadata</h3>
+ <p>BranchExtensionMetadata is the metadata for extensions used in branch.</p>
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of an extension. </p></td>
+ </tr>
+
+ <tr>
+ <td>schema</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The schema is the extension that is installed to. But the extension usage is not limited to the schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>version</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The version is the version of an extension. </p></td>
+ </tr>
+
+ <tr>
+ <td>description</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The description is the description of an extension. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchExternalTableMetadata">BranchExternalTableMetadata</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a external table. </p></td>
+ </tr>
+
+ <tr>
+ <td>external_server_name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The external_server_name is the name of the external server. </p></td>
+ </tr>
+
+ <tr>
+ <td>external_database_name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The external_database_name is the name of the external database. </p></td>
+ </tr>
+
+ <tr>
+ <td>columns</td>
+ <td><a href="#bytebase.store.BranchColumnMetadata">BranchColumnMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The columns is the ordered list of columns in a foreign table. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchForeignKeyMetadata">BranchForeignKeyMetadata</h3>
+ <p>BranchForeignKeyMetadata is the metadata for foreign keys used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>columns</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p>The columns are the ordered referencing columns of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>referenced_schema</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The referenced_schema is the referenced schema name of a foreign key.
+It is an empty string for databases without such concept such as MySQL. </p></td>
+ </tr>
+
+ <tr>
+ <td>referenced_table</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The referenced_table is the referenced table name of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>referenced_columns</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p>The referenced_columns are the ordered referenced columns of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>on_delete</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The on_delete is the on delete action of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>on_update</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The on_update is the on update action of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>match_type</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The match_type is the match type of a foreign key.
+The match_type is the PostgreSQL specific field.
+It&#39;s empty string for other databases. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchFunctionMetadata">BranchFunctionMetadata</h3>
+ <p>BranchFunctionMetadata is the metadata for functions used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a function. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition is the definition of a function. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchIndexMetadata">BranchIndexMetadata</h3>
+ <p>BranchIndexMetadata is the metadata for indexes used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of an index. </p></td>
+ </tr>
+
+ <tr>
+ <td>expressions</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p>The expressions are the ordered columns or expressions of an index.
+This could refer to a column or an expression. </p></td>
+ </tr>
+
+ <tr>
+ <td>key_length</td>
+ <td><a href="#int64">int64</a></td>
+ <td>repeated</td>
+ <td><p>The key_lengths are the ordered key lengths of an index.
+If the key length is not specified, it&#39;s -1. </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The type is the type of an index. </p></td>
+ </tr>
+
+ <tr>
+ <td>unique</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The unique is whether the index is unique. </p></td>
+ </tr>
+
+ <tr>
+ <td>primary</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The primary is whether the index is a primary key index. </p></td>
+ </tr>
+
+ <tr>
+ <td>visible</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The visible is whether the index is visible. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of an index. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition of an index. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchMaterializedViewMetadata">BranchMaterializedViewMetadata</h3>
+ <p>BranchMaterializedViewMetadata is the metadata for materialized views used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition is the definition of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>dependent_columns</td>
+ <td><a href="#bytebase.store.BranchDependentColumn">BranchDependentColumn</a></td>
+ <td>repeated</td>
+ <td><p>The dependent_columns is the list of dependent columns of a view. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchProcedureMetadata">BranchProcedureMetadata</h3>
+ <p>BranchProcedureMetadata is the metadata for procedures used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a procedure. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition is the definition of a procedure. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchSchemaMetadata">BranchSchemaMetadata</h3>
+ <p>BranchSchemaMetadata is the metadata for schemas used in branch.</p><p>This is the concept of schema in Postgres, but it's a no-op for MySQL.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the schema name.
+It is an empty string for databases without such concept such as MySQL. </p></td>
+ </tr>
+
+ <tr>
+ <td>tables</td>
+ <td><a href="#bytebase.store.BranchTableMetadata">BranchTableMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The tables is the list of tables in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>external_tables</td>
+ <td><a href="#bytebase.store.BranchExternalTableMetadata">BranchExternalTableMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The external_tables is the list of external tables in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>views</td>
+ <td><a href="#bytebase.store.BranchViewMetadata">BranchViewMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The views is the list of views in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>functions</td>
+ <td><a href="#bytebase.store.BranchFunctionMetadata">BranchFunctionMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The functions is the list of functions in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>procedures</td>
+ <td><a href="#bytebase.store.BranchProcedureMetadata">BranchProcedureMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The procedures is the list of procedures in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>streams</td>
+ <td><a href="#bytebase.store.BranchStreamMetadata">BranchStreamMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The streams is the list of streams in a schema, currently, only used for Snowflake. </p></td>
+ </tr>
+
+ <tr>
+ <td>tasks</td>
+ <td><a href="#bytebase.store.BranchTaskMetadata">BranchTaskMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The routines is the list of routines in a schema, currently, only used for Snowflake. </p></td>
+ </tr>
+
+ <tr>
+ <td>materialized_views</td>
+ <td><a href="#bytebase.store.BranchMaterializedViewMetadata">BranchMaterializedViewMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The materialized_views is the list of materialized views in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchSnapshot">BranchSnapshot</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>metadata</td>
+ <td><a href="#bytebase.store.DatabaseSchemaMetadata">DatabaseSchemaMetadata</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>database_config</td>
+ <td><a href="#bytebase.store.DatabaseConfig">DatabaseConfig</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchStreamMetadata">BranchStreamMetadata</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>table_name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The table_name is the name of the table/view that the stream is created on. </p></td>
+ </tr>
+
+ <tr>
+ <td>owner</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The owner of the stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment of the stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#bytebase.store.BranchStreamMetadata.Type">BranchStreamMetadata.Type</a></td>
+ <td></td>
+ <td><p>The type of the stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>stale</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>Indicates whether the stream was last read before the `stale_after` time. </p></td>
+ </tr>
+
+ <tr>
+ <td>mode</td>
+ <td><a href="#bytebase.store.BranchStreamMetadata.Mode">BranchStreamMetadata.Mode</a></td>
+ <td></td>
+ <td><p>The mode of the stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition of the stream. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchTableMetadata">BranchTableMetadata</h3>
+ <p>BranchTableMetadata is the metadata for tables used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>columns</td>
+ <td><a href="#bytebase.store.BranchColumnMetadata">BranchColumnMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The columns is the ordered list of columns in a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>indexes</td>
+ <td><a href="#bytebase.store.BranchIndexMetadata">BranchIndexMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The indexes is the list of indexes in a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>engine</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The engine is the engine of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>collation</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The collation is the collation of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>row_count</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The row_count is the estimated number of rows of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>data_size</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The data_size is the estimated data size of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>index_size</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The index_size is the estimated index size of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>data_free</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The data_free is the estimated free data size of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>create_options</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The create_options is the create option of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of a table.
+classification and user_comment is parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>classification</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The classification is the classification of a table parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>user_comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The user_comment is the user comment of a table parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>foreign_keys</td>
+ <td><a href="#bytebase.store.BranchForeignKeyMetadata">BranchForeignKeyMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The foreign_keys is the list of foreign keys in a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>partitions</td>
+ <td><a href="#bytebase.store.BranchTablePartitionMetadata">BranchTablePartitionMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The partitions is the list of partitions in a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchTablePartitionMetadata">BranchTablePartitionMetadata</h3>
+ <p>BranchTablePartitionMetadata is the metadata for table partitions used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a table partition. </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#bytebase.store.BranchTablePartitionMetadata.Type">BranchTablePartitionMetadata.Type</a></td>
+ <td></td>
+ <td><p>The type of a table partition. </p></td>
+ </tr>
+
+ <tr>
+ <td>expression</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The expression is the expression of a table partition.
+For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.
+For MySQL, the expression is the `expr` or `column_list` of the following syntax.
+PARTITION BY
+ { [LINEAR] HASH(expr)
+ | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ | RANGE{(expr) | COLUMNS(column_list)}
+ | LIST{(expr) | COLUMNS(column_list)} }. </p></td>
+ </tr>
+
+ <tr>
+ <td>value</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The value is the value of a table partition.
+For MySQL, the value is for RANGE and LIST partition types,
+- For a RANGE partition, it contains the value set in the partition&#39;s VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+- For a LIST partition, this column contains the values defined in the partition&#39;s VALUES IN clause, which is a list of comma-separated integer values.
+- For others, it&#39;s an empty string. </p></td>
+ </tr>
+
+ <tr>
+ <td>use_default</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The use_default is whether the users use the default partition, it stores the different value for different database engines.
+For MySQL, it&#39;s [INT] type, 0 means not use default partition, otherwise, it&#39;s equals to number in syntax [SUB]PARTITION {number}. </p></td>
+ </tr>
+
+ <tr>
+ <td>subpartitions</td>
+ <td><a href="#bytebase.store.BranchTablePartitionMetadata">BranchTablePartitionMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The subpartitions is the list of subpartitions in a table partition. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchTaskMetadata">BranchTaskMetadata</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a task. </p></td>
+ </tr>
+
+ <tr>
+ <td>id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The id is the snowflake-generated id of a task.
+Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td>
+ </tr>
+
+ <tr>
+ <td>owner</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The owner of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>warehouse</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The warehouse of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>schedule</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The schedule interval of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>predecessors</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p>The predecessor tasks of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>state</td>
+ <td><a href="#bytebase.store.BranchTaskMetadata.State">BranchTaskMetadata.State</a></td>
+ <td></td>
+ <td><p>The state of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>condition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The condition of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition of the task. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.BranchViewMetadata">BranchViewMetadata</h3>
+ <p>BranchViewMetadata is the metadata for views used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition is the definition of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>dependent_columns</td>
+ <td><a href="#bytebase.store.BranchDependentColumn">BranchDependentColumn</a></td>
+ <td>repeated</td>
+ <td><p>The dependent_columns is the list of dependent columns of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+
+
+ <h3 id="bytebase.store.BranchStreamMetadata.Mode">BranchStreamMetadata.Mode</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>MODE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MODE_DEFAULT</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MODE_APPEND_ONLY</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MODE_INSERT_ONLY</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.store.BranchStreamMetadata.Type">BranchStreamMetadata.Type</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>TYPE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>TYPE_DELTA</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.store.BranchTablePartitionMetadata.Type">BranchTablePartitionMetadata.Type</h3>
+ <p>Type is the type of a table partition, some database engines may not support all types.</p><p>Only avilable for the following database engines now:</p><p>MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)</p><p>TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY</p><p>PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)</p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>TYPE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>RANGE</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>RANGE_COLUMNS</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>LIST</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>LIST_COLUMNS</td>
+ <td>4</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>HASH</td>
+ <td>5</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>LINEAR_HASH</td>
+ <td>6</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>KEY</td>
+ <td>7</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>LINEAR_KEY</td>
+ <td>8</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.store.BranchTaskMetadata.State">BranchTaskMetadata.State</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>STATE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>STATE_STARTED</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>STATE_SUSPENDED</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 9b5606a4d1..57fa25ebce 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -177,6 +177,22 @@
- [v1/branch_service.proto](#v1_branch_service-proto)
- [Branch](#bytebase-v1-Branch)
+ - [BranchColumnMetadata](#bytebase-v1-BranchColumnMetadata)
+ - [BranchDatabaseSchemaMetadata](#bytebase-v1-BranchDatabaseSchemaMetadata)
+ - [BranchDependentColumn](#bytebase-v1-BranchDependentColumn)
+ - [BranchExtensionMetadata](#bytebase-v1-BranchExtensionMetadata)
+ - [BranchExternalTableMetadata](#bytebase-v1-BranchExternalTableMetadata)
+ - [BranchForeignKeyMetadata](#bytebase-v1-BranchForeignKeyMetadata)
+ - [BranchFunctionMetadata](#bytebase-v1-BranchFunctionMetadata)
+ - [BranchIndexMetadata](#bytebase-v1-BranchIndexMetadata)
+ - [BranchMaterializedViewMetadata](#bytebase-v1-BranchMaterializedViewMetadata)
+ - [BranchProcedureMetadata](#bytebase-v1-BranchProcedureMetadata)
+ - [BranchSchemaMetadata](#bytebase-v1-BranchSchemaMetadata)
+ - [BranchStreamMetadata](#bytebase-v1-BranchStreamMetadata)
+ - [BranchTableMetadata](#bytebase-v1-BranchTableMetadata)
+ - [BranchTablePartitionMetadata](#bytebase-v1-BranchTablePartitionMetadata)
+ - [BranchTaskMetadata](#bytebase-v1-BranchTaskMetadata)
+ - [BranchViewMetadata](#bytebase-v1-BranchViewMetadata)
- [CreateBranchRequest](#bytebase-v1-CreateBranchRequest)
- [DeleteBranchRequest](#bytebase-v1-DeleteBranchRequest)
- [DiffDatabaseRequest](#bytebase-v1-DiffDatabaseRequest)
@@ -191,6 +207,10 @@
- [RebaseBranchResponse](#bytebase-v1-RebaseBranchResponse)
- [UpdateBranchRequest](#bytebase-v1-UpdateBranchRequest)
+ - [BranchStreamMetadata.Mode](#bytebase-v1-BranchStreamMetadata-Mode)
+ - [BranchStreamMetadata.Type](#bytebase-v1-BranchStreamMetadata-Type)
+ - [BranchTablePartitionMetadata.Type](#bytebase-v1-BranchTablePartitionMetadata-Type)
+ - [BranchTaskMetadata.State](#bytebase-v1-BranchTaskMetadata-State)
- [BranchView](#bytebase-v1-BranchView)
- [BranchService](#bytebase-v1-BranchService)
@@ -3367,6 +3387,349 @@ PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-parti
+<a name="bytebase-v1-BranchColumnMetadata"></a>
+
+### BranchColumnMetadata
+BranchColumnMetadata is the metadata for columns used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a column. |
+| position | [int32](#int32) | | The position is the position in columns. |
+| default | [google.protobuf.StringValue](#google-protobuf-StringValue) | | The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. |
+| default_null | [bool](#bool) | | |
+| default_expression | [string](#string) | | |
+| on_update | [string](#string) | | The on_update is the on update action of a column. For MySQL like databases, it&#39;s only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value. |
+| nullable | [bool](#bool) | | The nullable is the nullable of a column. |
+| type | [string](#string) | | The type is the type of a column. |
+| character_set | [string](#string) | | The character_set is the character_set of a column. |
+| collation | [string](#string) | | The collation is the collation of a column. |
+| comment | [string](#string) | | The comment is the comment of a column. classification and user_comment is parsed from the comment. |
+| classification | [string](#string) | | The classification is the classification of a table parsed from the comment. |
+| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchDatabaseSchemaMetadata"></a>
+
+### BranchDatabaseSchemaMetadata
+BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | |
+| schemas | [BranchSchemaMetadata](#bytebase-v1-BranchSchemaMetadata) | repeated | The schemas is the list of schemas in a database. |
+| character_set | [string](#string) | | The character_set is the character set of a database. |
+| collation | [string](#string) | | The collation is the collation of a database. |
+| extensions | [ExtensionMetadata](#bytebase-v1-ExtensionMetadata) | repeated | The extensions is the list of extensions in a database. |
+| datashare | [bool](#bool) | | The database belongs to a datashare. |
+| service_name | [string](#string) | | The service name of the database. It&#39;s the Oracle specific concept. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchDependentColumn"></a>
+
+### BranchDependentColumn
+BranchDependentColumn is the metadata for dependent columns used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| schema | [string](#string) | | The schema is the schema of a reference column. |
+| table | [string](#string) | | The table is the table of a reference column. |
+| column | [string](#string) | | The column is the name of a reference column. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchExtensionMetadata"></a>
+
+### BranchExtensionMetadata
+BranchExtensionMetadata is the metadata for extensions used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of an extension. |
+| schema | [string](#string) | | The schema is the extension that is installed to. But the extension usage is not limited to the schema. |
+| version | [string](#string) | | The version is the version of an extension. |
+| description | [string](#string) | | The description is the description of an extension. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchExternalTableMetadata"></a>
+
+### BranchExternalTableMetadata
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a external table. |
+| external_server_name | [string](#string) | | The external_server_name is the name of the external server. |
+| external_database_name | [string](#string) | | The external_database_name is the name of the external database. |
+| columns | [BranchColumnMetadata](#bytebase-v1-BranchColumnMetadata) | repeated | The columns is the ordered list of columns in a foreign table. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchForeignKeyMetadata"></a>
+
+### BranchForeignKeyMetadata
+BranchForeignKeyMetadata is the metadata for foreign keys used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a foreign key. |
+| columns | [string](#string) | repeated | The columns are the ordered referencing columns of a foreign key. |
+| referenced_schema | [string](#string) | | The referenced_schema is the referenced schema name of a foreign key. It is an empty string for databases without such concept such as MySQL. |
+| referenced_table | [string](#string) | | The referenced_table is the referenced table name of a foreign key. |
+| referenced_columns | [string](#string) | repeated | The referenced_columns are the ordered referenced columns of a foreign key. |
+| on_delete | [string](#string) | | The on_delete is the on delete action of a foreign key. |
+| on_update | [string](#string) | | The on_update is the on update action of a foreign key. |
+| match_type | [string](#string) | | The match_type is the match type of a foreign key. The match_type is the PostgreSQL specific field. It&#39;s empty string for other databases. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchFunctionMetadata"></a>
+
+### BranchFunctionMetadata
+BranchFunctionMetadata is the metadata for functions used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a function. |
+| definition | [string](#string) | | The definition is the definition of a function. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchIndexMetadata"></a>
+
+### BranchIndexMetadata
+BranchIndexMetadata is the metadata for indexes used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of an index. |
+| expressions | [string](#string) | repeated | The expressions are the ordered columns or expressions of an index. This could refer to a column or an expression. |
+| key_length | [int64](#int64) | repeated | The key_lengths are the ordered key lengths of an index. If the key length is not specified, it&#39;s -1. |
+| type | [string](#string) | | The type is the type of an index. |
+| unique | [bool](#bool) | | The unique is whether the index is unique. |
+| primary | [bool](#bool) | | The primary is whether the index is a primary key index. |
+| visible | [bool](#bool) | | The visible is whether the index is visible. |
+| comment | [string](#string) | | The comment is the comment of an index. |
+| definition | [string](#string) | | The definition of an index. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchMaterializedViewMetadata"></a>
+
+### BranchMaterializedViewMetadata
+BranchMaterializedViewMetadata is the metadata for materialized views used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a view. |
+| definition | [string](#string) | | The definition is the definition of a view. |
+| comment | [string](#string) | | The comment is the comment of a view. |
+| dependent_columns | [BranchDependentColumn](#bytebase-v1-BranchDependentColumn) | repeated | The dependent_columns is the list of dependent columns of a view. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchProcedureMetadata"></a>
+
+### BranchProcedureMetadata
+BranchProcedureMetadata is the metadata for procedures used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a procedure. |
+| definition | [string](#string) | | The definition is the definition of a procedure. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchSchemaMetadata"></a>
+
+### BranchSchemaMetadata
+BranchSchemaMetadata is the metadata for schemas used in branch.
+This is the concept of schema in Postgres, but it&#39;s a no-op for MySQL.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |
+| tables | [BranchTableMetadata](#bytebase-v1-BranchTableMetadata) | repeated | The tables is the list of tables in a schema. |
+| external_tables | [BranchExternalTableMetadata](#bytebase-v1-BranchExternalTableMetadata) | repeated | The external_tables is the list of external tables in a schema. |
+| views | [BranchViewMetadata](#bytebase-v1-BranchViewMetadata) | repeated | The views is the list of views in a schema. |
+| functions | [BranchFunctionMetadata](#bytebase-v1-BranchFunctionMetadata) | repeated | The functions is the list of functions in a schema. |
+| procedures | [BranchProcedureMetadata](#bytebase-v1-BranchProcedureMetadata) | repeated | The procedures is the list of procedures in a schema. |
+| streams | [BranchStreamMetadata](#bytebase-v1-BranchStreamMetadata) | repeated | The streams is the list of streams in a schema, currently, only used for Snowflake. |
+| tasks | [BranchTaskMetadata](#bytebase-v1-BranchTaskMetadata) | repeated | The routines is the list of routines in a schema, currently, only used for Snowflake. |
+| materialized_views | [BranchMaterializedViewMetadata](#bytebase-v1-BranchMaterializedViewMetadata) | repeated | The materialized_views is the list of materialized views in a schema. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchStreamMetadata"></a>
+
+### BranchStreamMetadata
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a stream. |
+| table_name | [string](#string) | | The table_name is the name of the table/view that the stream is created on. |
+| owner | [string](#string) | | The owner of the stream. |
+| comment | [string](#string) | | The comment of the stream. |
+| type | [BranchStreamMetadata.Type](#bytebase-v1-BranchStreamMetadata-Type) | | The type of the stream. |
+| stale | [bool](#bool) | | Indicates whether the stream was last read before the `stale_after` time. |
+| mode | [BranchStreamMetadata.Mode](#bytebase-v1-BranchStreamMetadata-Mode) | | The mode of the stream. |
+| definition | [string](#string) | | The definition of the stream. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchTableMetadata"></a>
+
+### BranchTableMetadata
+BranchTableMetadata is the metadata for tables used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a table. |
+| columns | [BranchColumnMetadata](#bytebase-v1-BranchColumnMetadata) | repeated | The columns is the ordered list of columns in a table. |
+| indexes | [BranchIndexMetadata](#bytebase-v1-BranchIndexMetadata) | repeated | The indexes is the list of indexes in a table. |
+| engine | [string](#string) | | The engine is the engine of a table. |
+| collation | [string](#string) | | The collation is the collation of a table. |
+| row_count | [int64](#int64) | | The row_count is the estimated number of rows of a table. |
+| data_size | [int64](#int64) | | The data_size is the estimated data size of a table. |
+| index_size | [int64](#int64) | | The index_size is the estimated index size of a table. |
+| data_free | [int64](#int64) | | The data_free is the estimated free data size of a table. |
+| create_options | [string](#string) | | The create_options is the create option of a table. |
+| comment | [string](#string) | | The comment is the comment of a table. classification and user_comment is parsed from the comment. |
+| classification | [string](#string) | | The classification is the classification of a table parsed from the comment. |
+| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |
+| foreign_keys | [BranchForeignKeyMetadata](#bytebase-v1-BranchForeignKeyMetadata) | repeated | The foreign_keys is the list of foreign keys in a table. |
+| partitions | [BranchTablePartitionMetadata](#bytebase-v1-BranchTablePartitionMetadata) | repeated | The partitions is the list of partitions in a table. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchTablePartitionMetadata"></a>
+
+### BranchTablePartitionMetadata
+BranchTablePartitionMetadata is the metadata for table partitions used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a table partition. |
+| type | [BranchTablePartitionMetadata.Type](#bytebase-v1-BranchTablePartitionMetadata-Type) | | The type of a table partition. |
+| expression | [string](#string) | | The expression is the expression of a table partition. For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html. For MySQL, the expression is the `expr` or `column_list` of the following syntax. PARTITION BY { [LINEAR] HASH(expr) | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list) | RANGE{(expr) | COLUMNS(column_list)} | LIST{(expr) | COLUMNS(column_list)} }. |
+| value | [string](#string) | | The value is the value of a table partition. For MySQL, the value is for RANGE and LIST partition types, - For a RANGE partition, it contains the value set in the partition&#39;s VALUES LESS THAN clause, which can be either an integer or MAXVALUE. - For a LIST partition, this column contains the values defined in the partition&#39;s VALUES IN clause, which is a list of comma-separated integer values. - For others, it&#39;s an empty string. |
+| use_default | [string](#string) | | The use_default is whether the users use the default partition, it stores the different value for different database engines. For MySQL, it&#39;s [INT] type, 0 means not use default partition, otherwise, it&#39;s equals to number in syntax [SUB]PARTITION {number}. |
+| subpartitions | [BranchTablePartitionMetadata](#bytebase-v1-BranchTablePartitionMetadata) | repeated | The subpartitions is the list of subpartitions in a table partition. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchTaskMetadata"></a>
+
+### BranchTaskMetadata
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a task. |
+| id | [string](#string) | | The id is the snowflake-generated id of a task. Example: 01ad32a0-1bb6-5e93-0000-000000000001 |
+| owner | [string](#string) | | The owner of the task. |
+| comment | [string](#string) | | The comment of the task. |
+| warehouse | [string](#string) | | The warehouse of the task. |
+| schedule | [string](#string) | | The schedule interval of the task. |
+| predecessors | [string](#string) | repeated | The predecessor tasks of the task. |
+| state | [BranchTaskMetadata.State](#bytebase-v1-BranchTaskMetadata-State) | | The state of the task. |
+| condition | [string](#string) | | The condition of the task. |
+| definition | [string](#string) | | The definition of the task. |
+
+
+
+
+
+
+<a name="bytebase-v1-BranchViewMetadata"></a>
+
+### BranchViewMetadata
+BranchViewMetadata is the metadata for views used in branch.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a view. |
+| definition | [string](#string) | | The definition is the definition of a view. |
+| comment | [string](#string) | | The comment is the comment of a view. |
+| dependent_columns | [BranchDependentColumn](#bytebase-v1-BranchDependentColumn) | repeated | The dependent_columns is the list of dependent columns of a view. |
+| updater | [string](#string) | | The last updater of the object. Format: users/{email} |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the object was last updated. |
+
+
+
+
+
+
<a name="bytebase-v1-CreateBranchRequest"></a>
### CreateBranchRequest
@@ -3592,6 +3955,68 @@ The branch&#39;s `name` field is used to identify the branch to update. Format:
+<a name="bytebase-v1-BranchStreamMetadata-Mode"></a>
+
+### BranchStreamMetadata.Mode
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| MODE_UNSPECIFIED | 0 | |
+| MODE_DEFAULT | 1 | |
+| MODE_APPEND_ONLY | 2 | |
+| MODE_INSERT_ONLY | 3 | |
+
+
+
+<a name="bytebase-v1-BranchStreamMetadata-Type"></a>
+
+### BranchStreamMetadata.Type
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| TYPE_UNSPECIFIED | 0 | |
+| TYPE_DELTA | 1 | |
+
+
+
+<a name="bytebase-v1-BranchTablePartitionMetadata-Type"></a>
+
+### BranchTablePartitionMetadata.Type
+Type is the type of a table partition, some database engines may not support all types.
+Only avilable for the following database engines now:
+MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)
+TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY
+PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| TYPE_UNSPECIFIED | 0 | |
+| RANGE | 1 | |
+| RANGE_COLUMNS | 2 | |
+| LIST | 3 | |
+| LIST_COLUMNS | 4 | |
+| HASH | 5 | |
+| LINEAR_HASH | 6 | |
+| KEY | 7 | |
+| LINEAR_KEY | 8 | |
+
+
+
+<a name="bytebase-v1-BranchTaskMetadata-State"></a>
+
+### BranchTaskMetadata.State
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| STATE_UNSPECIFIED | 0 | |
+| STATE_STARTED | 1 | |
+| STATE_SUSPENDED | 2 | |
+
+
+
<a name="bytebase-v1-BranchView"></a>
### BranchView
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index f19a3c850e..bc88fb517c 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -847,6 +847,70 @@
<a href="#bytebase.v1.Branch"><span class="badge">M</span>Branch</a>
</li>
+ <li>
+ <a href="#bytebase.v1.BranchColumnMetadata"><span class="badge">M</span>BranchColumnMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchDatabaseSchemaMetadata"><span class="badge">M</span>BranchDatabaseSchemaMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchDependentColumn"><span class="badge">M</span>BranchDependentColumn</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchExtensionMetadata"><span class="badge">M</span>BranchExtensionMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchExternalTableMetadata"><span class="badge">M</span>BranchExternalTableMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchForeignKeyMetadata"><span class="badge">M</span>BranchForeignKeyMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchFunctionMetadata"><span class="badge">M</span>BranchFunctionMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchIndexMetadata"><span class="badge">M</span>BranchIndexMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchMaterializedViewMetadata"><span class="badge">M</span>BranchMaterializedViewMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchProcedureMetadata"><span class="badge">M</span>BranchProcedureMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchSchemaMetadata"><span class="badge">M</span>BranchSchemaMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchStreamMetadata"><span class="badge">M</span>BranchStreamMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchTableMetadata"><span class="badge">M</span>BranchTableMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchTablePartitionMetadata"><span class="badge">M</span>BranchTablePartitionMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchTaskMetadata"><span class="badge">M</span>BranchTaskMetadata</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchViewMetadata"><span class="badge">M</span>BranchViewMetadata</a>
+ </li>
+
<li>
<a href="#bytebase.v1.CreateBranchRequest"><span class="badge">M</span>CreateBranchRequest</a>
</li>
@@ -900,6 +964,22 @@
</li>
+ <li>
+ <a href="#bytebase.v1.BranchStreamMetadata.Mode"><span class="badge">E</span>BranchStreamMetadata.Mode</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchStreamMetadata.Type"><span class="badge">E</span>BranchStreamMetadata.Type</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchTablePartitionMetadata.Type"><span class="badge">E</span>BranchTablePartitionMetadata.Type</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.BranchTaskMetadata.State"><span class="badge">E</span>BranchTaskMetadata.State</a>
+ </li>
+
<li>
<a href="#bytebase.v1.BranchView"><span class="badge">E</span>BranchView</a>
</li>
@@ -10184,8 +10264,8 @@ Format: users/{email} </p></td>
- <h3 id="bytebase.v1.CreateBranchRequest">CreateBranchRequest</h3>
- <p></p>
+ <h3 id="bytebase.v1.BranchColumnMetadata">BranchColumnMetadata</h3>
+ <p>BranchColumnMetadata is the metadata for columns used in branch.</p>
<table class="field-table">
@@ -10195,27 +10275,96 @@ Format: users/{email} </p></td>
<tbody>
<tr>
- <td>parent</td>
+ <td>name</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The parent, which owns this collection of branches.
-Format: project/{project} </p></td>
+ <td><p>The name is the name of a column. </p></td>
</tr>
<tr>
- <td>branch</td>
- <td><a href="#bytebase.v1.Branch">Branch</a></td>
+ <td>position</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>The position is the position in columns. </p></td>
+ </tr>
+
+ <tr>
+ <td>default</td>
+ <td><a href="#google.protobuf.StringValue">google.protobuf.StringValue</a></td>
+ <td></td>
+ <td><p>The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. </p></td>
+ </tr>
+
+ <tr>
+ <td>default_null</td>
+ <td><a href="#bool">bool</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>branch_id</td>
+ <td>default_expression</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The ID to use for the branch, which will become the final component of
-the branch&#39;s resource name.
-Format: [a-zA-Z][a-zA-Z0-9-_/]&#43;. </p></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>on_update</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The on_update is the on update action of a column.
+For MySQL like databases, it&#39;s only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value. </p></td>
+ </tr>
+
+ <tr>
+ <td>nullable</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The nullable is the nullable of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The type is the type of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>character_set</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The character_set is the character_set of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>collation</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The collation is the collation of a column. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of a column.
+classification and user_comment is parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>classification</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The classification is the classification of a table parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>user_comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The user_comment is the user comment of a table parsed from the comment. </p></td>
</tr>
</tbody>
@@ -10225,8 +10374,8 @@ Format: [a-zA-Z][a-zA-Z0-9-_/]&#43;. </p></td>
- <h3 id="bytebase.v1.DeleteBranchRequest">DeleteBranchRequest</h3>
- <p></p>
+ <h3 id="bytebase.v1.BranchDatabaseSchemaMetadata">BranchDatabaseSchemaMetadata</h3>
+ <p>BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch.</p>
<table class="field-table">
@@ -10239,17 +10388,49 @@ Format: [a-zA-Z][a-zA-Z0-9-_/]&#43;. </p></td>
<td>name</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The name of the branch to delete.
-Format: projects/{project}/branches/{branch} </p></td>
+ <td><p> </p></td>
</tr>
<tr>
- <td>force</td>
+ <td>schemas</td>
+ <td><a href="#bytebase.v1.BranchSchemaMetadata">BranchSchemaMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The schemas is the list of schemas in a database. </p></td>
+ </tr>
+
+ <tr>
+ <td>character_set</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The character_set is the character set of a database. </p></td>
+ </tr>
+
+ <tr>
+ <td>collation</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The collation is the collation of a database. </p></td>
+ </tr>
+
+ <tr>
+ <td>extensions</td>
+ <td><a href="#bytebase.v1.ExtensionMetadata">ExtensionMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The extensions is the list of extensions in a database. </p></td>
+ </tr>
+
+ <tr>
+ <td>datashare</td>
<td><a href="#bool">bool</a></td>
<td></td>
- <td><p>By default, server will return `FAILED_PRECONDITION` error
-if delete the branch that is parent of other branches.
-If true, server will delete the branch forcely but will not delete its children branches. </p></td>
+ <td><p>The database belongs to a datashare. </p></td>
+ </tr>
+
+ <tr>
+ <td>service_name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The service name of the database. It&#39;s the Oracle specific concept. </p></td>
</tr>
</tbody>
@@ -10259,8 +10440,8 @@ If true, server will delete the branch forcely but will not delete its children
- <h3 id="bytebase.v1.DiffDatabaseRequest">DiffDatabaseRequest</h3>
- <p></p>
+ <h3 id="bytebase.v1.BranchDependentColumn">BranchDependentColumn</h3>
+ <p>BranchDependentColumn is the metadata for dependent columns used in branch.</p>
<table class="field-table">
@@ -10270,17 +10451,24 @@ If true, server will delete the branch forcely but will not delete its children
<tbody>
<tr>
- <td>name</td>
+ <td>schema</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The name of branch. </p></td>
+ <td><p>The schema is the schema of a reference column. </p></td>
</tr>
<tr>
- <td>database</td>
+ <td>table</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The name of the databsae to merge the branch to. </p></td>
+ <td><p>The table is the table of a reference column. </p></td>
+ </tr>
+
+ <tr>
+ <td>column</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The column is the name of a reference column. </p></td>
</tr>
</tbody>
@@ -10290,8 +10478,8 @@ If true, server will delete the branch forcely but will not delete its children
- <h3 id="bytebase.v1.DiffDatabaseResponse">DiffDatabaseResponse</h3>
- <p></p>
+ <h3 id="bytebase.v1.BranchExtensionMetadata">BranchExtensionMetadata</h3>
+ <p>BranchExtensionMetadata is the metadata for extensions used in branch.</p>
<table class="field-table">
@@ -10301,28 +10489,31 @@ If true, server will delete the branch forcely but will not delete its children
<tbody>
<tr>
- <td>diff</td>
+ <td>name</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The schema diff when merge occurs seamlessly. </p></td>
+ <td><p>The name is the name of an extension. </p></td>
</tr>
<tr>
<td>schema</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The merged schema if there is no conflict. </p></td>
+ <td><p>The schema is the extension that is installed to. But the extension usage is not limited to the schema. </p></td>
</tr>
<tr>
- <td>conflict_schema</td>
+ <td>version</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The conflict schema when rebase has conflicts.
-The conflict section is enclosed by the following.
-&lt;&lt;&lt;&lt;&lt; HEAD
-====
-&gt;&gt;&gt;&gt;&gt; main </p></td>
+ <td><p>The version is the version of an extension. </p></td>
+ </tr>
+
+ <tr>
+ <td>description</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The description is the description of an extension. </p></td>
</tr>
</tbody>
@@ -10332,7 +10523,7 @@ The conflict section is enclosed by the following.
- <h3 id="bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</h3>
+ <h3 id="bytebase.v1.BranchExternalTableMetadata">BranchExternalTableMetadata</h3>
<p></p>
@@ -10343,24 +10534,31 @@ The conflict section is enclosed by the following.
<tbody>
<tr>
- <td>source_metadata</td>
- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p>The metadata of the source schema. </p></td>
+ <td><p>The name is the name of a external table. </p></td>
</tr>
<tr>
- <td>target_metadata</td>
- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>
+ <td>external_server_name</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p>The metadata of the target schema. </p></td>
+ <td><p>The external_server_name is the name of the external server. </p></td>
</tr>
<tr>
- <td>engine</td>
- <td><a href="#bytebase.v1.Engine">Engine</a></td>
+ <td>external_database_name</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p>The database engine of the schema. </p></td>
+ <td><p>The external_database_name is the name of the external database. </p></td>
+ </tr>
+
+ <tr>
+ <td>columns</td>
+ <td><a href="#bytebase.v1.BranchColumnMetadata">BranchColumnMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The columns is the ordered list of columns in a foreign table. </p></td>
</tr>
</tbody>
@@ -10370,8 +10568,8 @@ The conflict section is enclosed by the following.
- <h3 id="bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</h3>
- <p></p>
+ <h3 id="bytebase.v1.BranchForeignKeyMetadata">BranchForeignKeyMetadata</h3>
+ <p>BranchForeignKeyMetadata is the metadata for foreign keys used in branch.</p>
<table class="field-table">
@@ -10381,7 +10579,1014 @@ The conflict section is enclosed by the following.
<tbody>
<tr>
- <td>diff</td>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>columns</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p>The columns are the ordered referencing columns of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>referenced_schema</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The referenced_schema is the referenced schema name of a foreign key.
+It is an empty string for databases without such concept such as MySQL. </p></td>
+ </tr>
+
+ <tr>
+ <td>referenced_table</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The referenced_table is the referenced table name of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>referenced_columns</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p>The referenced_columns are the ordered referenced columns of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>on_delete</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The on_delete is the on delete action of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>on_update</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The on_update is the on update action of a foreign key. </p></td>
+ </tr>
+
+ <tr>
+ <td>match_type</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The match_type is the match type of a foreign key.
+The match_type is the PostgreSQL specific field.
+It&#39;s empty string for other databases. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchFunctionMetadata">BranchFunctionMetadata</h3>
+ <p>BranchFunctionMetadata is the metadata for functions used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a function. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition is the definition of a function. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchIndexMetadata">BranchIndexMetadata</h3>
+ <p>BranchIndexMetadata is the metadata for indexes used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of an index. </p></td>
+ </tr>
+
+ <tr>
+ <td>expressions</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p>The expressions are the ordered columns or expressions of an index.
+This could refer to a column or an expression. </p></td>
+ </tr>
+
+ <tr>
+ <td>key_length</td>
+ <td><a href="#int64">int64</a></td>
+ <td>repeated</td>
+ <td><p>The key_lengths are the ordered key lengths of an index.
+If the key length is not specified, it&#39;s -1. </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The type is the type of an index. </p></td>
+ </tr>
+
+ <tr>
+ <td>unique</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The unique is whether the index is unique. </p></td>
+ </tr>
+
+ <tr>
+ <td>primary</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The primary is whether the index is a primary key index. </p></td>
+ </tr>
+
+ <tr>
+ <td>visible</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>The visible is whether the index is visible. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of an index. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition of an index. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchMaterializedViewMetadata">BranchMaterializedViewMetadata</h3>
+ <p>BranchMaterializedViewMetadata is the metadata for materialized views used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition is the definition of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>dependent_columns</td>
+ <td><a href="#bytebase.v1.BranchDependentColumn">BranchDependentColumn</a></td>
+ <td>repeated</td>
+ <td><p>The dependent_columns is the list of dependent columns of a view. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchProcedureMetadata">BranchProcedureMetadata</h3>
+ <p>BranchProcedureMetadata is the metadata for procedures used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a procedure. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition is the definition of a procedure. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchSchemaMetadata">BranchSchemaMetadata</h3>
+ <p>BranchSchemaMetadata is the metadata for schemas used in branch.</p><p>This is the concept of schema in Postgres, but it's a no-op for MySQL.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the schema name.
+It is an empty string for databases without such concept such as MySQL. </p></td>
+ </tr>
+
+ <tr>
+ <td>tables</td>
+ <td><a href="#bytebase.v1.BranchTableMetadata">BranchTableMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The tables is the list of tables in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>external_tables</td>
+ <td><a href="#bytebase.v1.BranchExternalTableMetadata">BranchExternalTableMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The external_tables is the list of external tables in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>views</td>
+ <td><a href="#bytebase.v1.BranchViewMetadata">BranchViewMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The views is the list of views in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>functions</td>
+ <td><a href="#bytebase.v1.BranchFunctionMetadata">BranchFunctionMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The functions is the list of functions in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>procedures</td>
+ <td><a href="#bytebase.v1.BranchProcedureMetadata">BranchProcedureMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The procedures is the list of procedures in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>streams</td>
+ <td><a href="#bytebase.v1.BranchStreamMetadata">BranchStreamMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The streams is the list of streams in a schema, currently, only used for Snowflake. </p></td>
+ </tr>
+
+ <tr>
+ <td>tasks</td>
+ <td><a href="#bytebase.v1.BranchTaskMetadata">BranchTaskMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The routines is the list of routines in a schema, currently, only used for Snowflake. </p></td>
+ </tr>
+
+ <tr>
+ <td>materialized_views</td>
+ <td><a href="#bytebase.v1.BranchMaterializedViewMetadata">BranchMaterializedViewMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The materialized_views is the list of materialized views in a schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchStreamMetadata">BranchStreamMetadata</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>table_name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The table_name is the name of the table/view that the stream is created on. </p></td>
+ </tr>
+
+ <tr>
+ <td>owner</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The owner of the stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment of the stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#bytebase.v1.BranchStreamMetadata.Type">BranchStreamMetadata.Type</a></td>
+ <td></td>
+ <td><p>The type of the stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>stale</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>Indicates whether the stream was last read before the `stale_after` time. </p></td>
+ </tr>
+
+ <tr>
+ <td>mode</td>
+ <td><a href="#bytebase.v1.BranchStreamMetadata.Mode">BranchStreamMetadata.Mode</a></td>
+ <td></td>
+ <td><p>The mode of the stream. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition of the stream. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchTableMetadata">BranchTableMetadata</h3>
+ <p>BranchTableMetadata is the metadata for tables used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>columns</td>
+ <td><a href="#bytebase.v1.BranchColumnMetadata">BranchColumnMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The columns is the ordered list of columns in a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>indexes</td>
+ <td><a href="#bytebase.v1.BranchIndexMetadata">BranchIndexMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The indexes is the list of indexes in a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>engine</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The engine is the engine of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>collation</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The collation is the collation of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>row_count</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The row_count is the estimated number of rows of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>data_size</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The data_size is the estimated data size of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>index_size</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The index_size is the estimated index size of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>data_free</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The data_free is the estimated free data size of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>create_options</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The create_options is the create option of a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of a table.
+classification and user_comment is parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>classification</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The classification is the classification of a table parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>user_comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The user_comment is the user comment of a table parsed from the comment. </p></td>
+ </tr>
+
+ <tr>
+ <td>foreign_keys</td>
+ <td><a href="#bytebase.v1.BranchForeignKeyMetadata">BranchForeignKeyMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The foreign_keys is the list of foreign keys in a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>partitions</td>
+ <td><a href="#bytebase.v1.BranchTablePartitionMetadata">BranchTablePartitionMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The partitions is the list of partitions in a table. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchTablePartitionMetadata">BranchTablePartitionMetadata</h3>
+ <p>BranchTablePartitionMetadata is the metadata for table partitions used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a table partition. </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#bytebase.v1.BranchTablePartitionMetadata.Type">BranchTablePartitionMetadata.Type</a></td>
+ <td></td>
+ <td><p>The type of a table partition. </p></td>
+ </tr>
+
+ <tr>
+ <td>expression</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The expression is the expression of a table partition.
+For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.
+For MySQL, the expression is the `expr` or `column_list` of the following syntax.
+PARTITION BY
+ { [LINEAR] HASH(expr)
+ | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ | RANGE{(expr) | COLUMNS(column_list)}
+ | LIST{(expr) | COLUMNS(column_list)} }. </p></td>
+ </tr>
+
+ <tr>
+ <td>value</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The value is the value of a table partition.
+For MySQL, the value is for RANGE and LIST partition types,
+- For a RANGE partition, it contains the value set in the partition&#39;s VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+- For a LIST partition, this column contains the values defined in the partition&#39;s VALUES IN clause, which is a list of comma-separated integer values.
+- For others, it&#39;s an empty string. </p></td>
+ </tr>
+
+ <tr>
+ <td>use_default</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The use_default is whether the users use the default partition, it stores the different value for different database engines.
+For MySQL, it&#39;s [INT] type, 0 means not use default partition, otherwise, it&#39;s equals to number in syntax [SUB]PARTITION {number}. </p></td>
+ </tr>
+
+ <tr>
+ <td>subpartitions</td>
+ <td><a href="#bytebase.v1.BranchTablePartitionMetadata">BranchTablePartitionMetadata</a></td>
+ <td>repeated</td>
+ <td><p>The subpartitions is the list of subpartitions in a table partition. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchTaskMetadata">BranchTaskMetadata</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a task. </p></td>
+ </tr>
+
+ <tr>
+ <td>id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The id is the snowflake-generated id of a task.
+Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td>
+ </tr>
+
+ <tr>
+ <td>owner</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The owner of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>warehouse</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The warehouse of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>schedule</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The schedule interval of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>predecessors</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p>The predecessor tasks of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>state</td>
+ <td><a href="#bytebase.v1.BranchTaskMetadata.State">BranchTaskMetadata.State</a></td>
+ <td></td>
+ <td><p>The state of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>condition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The condition of the task. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition of the task. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.BranchViewMetadata">BranchViewMetadata</h3>
+ <p>BranchViewMetadata is the metadata for views used in branch.</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name is the name of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>definition</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The definition is the definition of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The comment is the comment of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>dependent_columns</td>
+ <td><a href="#bytebase.v1.BranchDependentColumn">BranchDependentColumn</a></td>
+ <td>repeated</td>
+ <td><p>The dependent_columns is the list of dependent columns of a view. </p></td>
+ </tr>
+
+ <tr>
+ <td>updater</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The last updater of the object.
+Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>update_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p>The timestamp when the object was last updated. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.CreateBranchRequest">CreateBranchRequest</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>parent</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The parent, which owns this collection of branches.
+Format: project/{project} </p></td>
+ </tr>
+
+ <tr>
+ <td>branch</td>
+ <td><a href="#bytebase.v1.Branch">Branch</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>branch_id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The ID to use for the branch, which will become the final component of
+the branch&#39;s resource name.
+Format: [a-zA-Z][a-zA-Z0-9-_/]&#43;. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.DeleteBranchRequest">DeleteBranchRequest</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name of the branch to delete.
+Format: projects/{project}/branches/{branch} </p></td>
+ </tr>
+
+ <tr>
+ <td>force</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>By default, server will return `FAILED_PRECONDITION` error
+if delete the branch that is parent of other branches.
+If true, server will delete the branch forcely but will not delete its children branches. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.DiffDatabaseRequest">DiffDatabaseRequest</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name of branch. </p></td>
+ </tr>
+
+ <tr>
+ <td>database</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The name of the databsae to merge the branch to. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.DiffDatabaseResponse">DiffDatabaseResponse</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>diff</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The schema diff when merge occurs seamlessly. </p></td>
+ </tr>
+
+ <tr>
+ <td>schema</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The merged schema if there is no conflict. </p></td>
+ </tr>
+
+ <tr>
+ <td>conflict_schema</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The conflict schema when rebase has conflicts.
+The conflict section is enclosed by the following.
+&lt;&lt;&lt;&lt;&lt; HEAD
+====
+&gt;&gt;&gt;&gt;&gt; main </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>source_metadata</td>
+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>
+ <td></td>
+ <td><p>The metadata of the source schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>target_metadata</td>
+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>
+ <td></td>
+ <td><p>The metadata of the target schema. </p></td>
+ </tr>
+
+ <tr>
+ <td>engine</td>
+ <td><a href="#bytebase.v1.Engine">Engine</a></td>
+ <td></td>
+ <td><p>The database engine of the schema. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>diff</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>The diff of the metadata. </p></td>
@@ -10710,6 +11915,158 @@ The etag should be specified for using merged_schema. The etag should be the eta
+ <h3 id="bytebase.v1.BranchStreamMetadata.Mode">BranchStreamMetadata.Mode</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>MODE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MODE_DEFAULT</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MODE_APPEND_ONLY</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MODE_INSERT_ONLY</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.v1.BranchStreamMetadata.Type">BranchStreamMetadata.Type</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>TYPE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>TYPE_DELTA</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.v1.BranchTablePartitionMetadata.Type">BranchTablePartitionMetadata.Type</h3>
+ <p>Type is the type of a table partition, some database engines may not support all types.</p><p>Only avilable for the following database engines now:</p><p>MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)</p><p>TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY</p><p>PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)</p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>TYPE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>RANGE</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>RANGE_COLUMNS</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>LIST</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>LIST_COLUMNS</td>
+ <td>4</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>HASH</td>
+ <td>5</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>LINEAR_HASH</td>
+ <td>6</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>KEY</td>
+ <td>7</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>LINEAR_KEY</td>
+ <td>8</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.v1.BranchTaskMetadata.State">BranchTaskMetadata.State</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>STATE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>STATE_STARTED</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>STATE_SUSPENDED</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
<h3 id="bytebase.v1.BranchView">BranchView</h3>
<p></p>
<table class="enum-table">
diff --git a/proto/generated-go/store/branch.pb.go b/proto/generated-go/store/branch.pb.go
index 2854ed68f0..d84af4da14 100644
--- a/proto/generated-go/store/branch.pb.go
+++ b/proto/generated-go/store/branch.pb.go
@@ -7,8 +7,11 @@
package store
import (
+ _ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ timestamppb "google.golang.org/protobuf/types/known/timestamppb"
+ wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
reflect "reflect"
sync "sync"
)
@@ -20,32 +23,1942 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
+type BranchTaskMetadata_State int32
+
+const (
+ BranchTaskMetadata_STATE_UNSPECIFIED BranchTaskMetadata_State = 0
+ BranchTaskMetadata_STATE_STARTED BranchTaskMetadata_State = 1
+ BranchTaskMetadata_STATE_SUSPENDED BranchTaskMetadata_State = 2
+)
+
+// Enum value maps for BranchTaskMetadata_State.
+var (
+ BranchTaskMetadata_State_name = map[int32]string{
+ 0: "STATE_UNSPECIFIED",
+ 1: "STATE_STARTED",
+ 2: "STATE_SUSPENDED",
+ }
+ BranchTaskMetadata_State_value = map[string]int32{
+ "STATE_UNSPECIFIED": 0,
+ "STATE_STARTED": 1,
+ "STATE_SUSPENDED": 2,
+ }
+)
+
+func (x BranchTaskMetadata_State) Enum() *BranchTaskMetadata_State {
+ p := new(BranchTaskMetadata_State)
+ *p = x
+ return p
+}
+
+func (x BranchTaskMetadata_State) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (BranchTaskMetadata_State) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_branch_proto_enumTypes[0].Descriptor()
+}
+
+func (BranchTaskMetadata_State) Type() protoreflect.EnumType {
+ return &file_store_branch_proto_enumTypes[0]
+}
+
+func (x BranchTaskMetadata_State) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use BranchTaskMetadata_State.Descriptor instead.
+func (BranchTaskMetadata_State) EnumDescriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{4, 0}
+}
+
+type BranchStreamMetadata_Type int32
+
+const (
+ BranchStreamMetadata_TYPE_UNSPECIFIED BranchStreamMetadata_Type = 0
+ BranchStreamMetadata_TYPE_DELTA BranchStreamMetadata_Type = 1
+)
+
+// Enum value maps for BranchStreamMetadata_Type.
+var (
+ BranchStreamMetadata_Type_name = map[int32]string{
+ 0: "TYPE_UNSPECIFIED",
+ 1: "TYPE_DELTA",
+ }
+ BranchStreamMetadata_Type_value = map[string]int32{
+ "TYPE_UNSPECIFIED": 0,
+ "TYPE_DELTA": 1,
+ }
+)
+
+func (x BranchStreamMetadata_Type) Enum() *BranchStreamMetadata_Type {
+ p := new(BranchStreamMetadata_Type)
+ *p = x
+ return p
+}
+
+func (x BranchStreamMetadata_Type) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (BranchStreamMetadata_Type) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_branch_proto_enumTypes[1].Descriptor()
+}
+
+func (BranchStreamMetadata_Type) Type() protoreflect.EnumType {
+ return &file_store_branch_proto_enumTypes[1]
+}
+
+func (x BranchStreamMetadata_Type) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use BranchStreamMetadata_Type.Descriptor instead.
+func (BranchStreamMetadata_Type) EnumDescriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{5, 0}
+}
+
+type BranchStreamMetadata_Mode int32
+
+const (
+ BranchStreamMetadata_MODE_UNSPECIFIED BranchStreamMetadata_Mode = 0
+ BranchStreamMetadata_MODE_DEFAULT BranchStreamMetadata_Mode = 1
+ BranchStreamMetadata_MODE_APPEND_ONLY BranchStreamMetadata_Mode = 2
+ BranchStreamMetadata_MODE_INSERT_ONLY BranchStreamMetadata_Mode = 3
+)
+
+// Enum value maps for BranchStreamMetadata_Mode.
+var (
+ BranchStreamMetadata_Mode_name = map[int32]string{
+ 0: "MODE_UNSPECIFIED",
+ 1: "MODE_DEFAULT",
+ 2: "MODE_APPEND_ONLY",
+ 3: "MODE_INSERT_ONLY",
+ }
+ BranchStreamMetadata_Mode_value = map[string]int32{
+ "MODE_UNSPECIFIED": 0,
+ "MODE_DEFAULT": 1,
+ "MODE_APPEND_ONLY": 2,
+ "MODE_INSERT_ONLY": 3,
+ }
+)
+
+func (x BranchStreamMetadata_Mode) Enum() *BranchStreamMetadata_Mode {
+ p := new(BranchStreamMetadata_Mode)
+ *p = x
+ return p
+}
+
+func (x BranchStreamMetadata_Mode) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (BranchStreamMetadata_Mode) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_branch_proto_enumTypes[2].Descriptor()
+}
+
+func (BranchStreamMetadata_Mode) Type() protoreflect.EnumType {
+ return &file_store_branch_proto_enumTypes[2]
+}
+
+func (x BranchStreamMetadata_Mode) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use BranchStreamMetadata_Mode.Descriptor instead.
+func (BranchStreamMetadata_Mode) EnumDescriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{5, 1}
+}
+
+// Type is the type of a table partition, some database engines may not support all types.
+// Only avilable for the following database engines now:
+// MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)
+// TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY
+// PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+type BranchTablePartitionMetadata_Type int32
+
+const (
+ BranchTablePartitionMetadata_TYPE_UNSPECIFIED BranchTablePartitionMetadata_Type = 0
+ BranchTablePartitionMetadata_RANGE BranchTablePartitionMetadata_Type = 1
+ BranchTablePartitionMetadata_RANGE_COLUMNS BranchTablePartitionMetadata_Type = 2
+ BranchTablePartitionMetadata_LIST BranchTablePartitionMetadata_Type = 3
+ BranchTablePartitionMetadata_LIST_COLUMNS BranchTablePartitionMetadata_Type = 4
+ BranchTablePartitionMetadata_HASH BranchTablePartitionMetadata_Type = 5
+ BranchTablePartitionMetadata_LINEAR_HASH BranchTablePartitionMetadata_Type = 6
+ BranchTablePartitionMetadata_KEY BranchTablePartitionMetadata_Type = 7
+ BranchTablePartitionMetadata_LINEAR_KEY BranchTablePartitionMetadata_Type = 8
+)
+
+// Enum value maps for BranchTablePartitionMetadata_Type.
+var (
+ BranchTablePartitionMetadata_Type_name = map[int32]string{
+ 0: "TYPE_UNSPECIFIED",
+ 1: "RANGE",
+ 2: "RANGE_COLUMNS",
+ 3: "LIST",
+ 4: "LIST_COLUMNS",
+ 5: "HASH",
+ 6: "LINEAR_HASH",
+ 7: "KEY",
+ 8: "LINEAR_KEY",
+ }
+ BranchTablePartitionMetadata_Type_value = map[string]int32{
+ "TYPE_UNSPECIFIED": 0,
+ "RANGE": 1,
+ "RANGE_COLUMNS": 2,
+ "LIST": 3,
+ "LIST_COLUMNS": 4,
+ "HASH": 5,
+ "LINEAR_HASH": 6,
+ "KEY": 7,
+ "LINEAR_KEY": 8,
+ }
+)
+
+func (x BranchTablePartitionMetadata_Type) Enum() *BranchTablePartitionMetadata_Type {
+ p := new(BranchTablePartitionMetadata_Type)
+ *p = x
+ return p
+}
+
+func (x BranchTablePartitionMetadata_Type) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (BranchTablePartitionMetadata_Type) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_branch_proto_enumTypes[3].Descriptor()
+}
+
+func (BranchTablePartitionMetadata_Type) Type() protoreflect.EnumType {
+ return &file_store_branch_proto_enumTypes[3]
+}
+
+func (x BranchTablePartitionMetadata_Type) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use BranchTablePartitionMetadata_Type.Descriptor instead.
+func (BranchTablePartitionMetadata_Type) EnumDescriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{8, 0}
+}
+
type BranchSnapshot struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- Metadata *DatabaseSchemaMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
- DatabaseConfig *DatabaseConfig `protobuf:"bytes,2,opt,name=database_config,json=databaseConfig,proto3" json:"database_config,omitempty"`
+ Metadata *DatabaseSchemaMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
+ DatabaseConfig *DatabaseConfig `protobuf:"bytes,2,opt,name=database_config,json=databaseConfig,proto3" json:"database_config,omitempty"`
+}
+
+func (x *BranchSnapshot) Reset() {
+ *x = BranchSnapshot{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchSnapshot) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchSnapshot) ProtoMessage() {}
+
+func (x *BranchSnapshot) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchSnapshot.ProtoReflect.Descriptor instead.
+func (*BranchSnapshot) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *BranchSnapshot) GetMetadata() *DatabaseSchemaMetadata {
+ if x != nil {
+ return x.Metadata
+ }
+ return nil
+}
+
+func (x *BranchSnapshot) GetDatabaseConfig() *DatabaseConfig {
+ if x != nil {
+ return x.DatabaseConfig
+ }
+ return nil
+}
+
+type BranchConfig struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name of source database.
+ // Optional.
+ // Example: instances/instance-id/databases/database-name.
+ SourceDatabase string `protobuf:"bytes,1,opt,name=source_database,json=sourceDatabase,proto3" json:"source_database,omitempty"`
+ // The name of the source branch.
+ // Optional.
+ // Example: projects/project-id/branches/branch-id.
+ SourceBranch string `protobuf:"bytes,2,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
+}
+
+func (x *BranchConfig) Reset() {
+ *x = BranchConfig{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchConfig) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchConfig) ProtoMessage() {}
+
+func (x *BranchConfig) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchConfig.ProtoReflect.Descriptor instead.
+func (*BranchConfig) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *BranchConfig) GetSourceDatabase() string {
+ if x != nil {
+ return x.SourceDatabase
+ }
+ return ""
+}
+
+func (x *BranchConfig) GetSourceBranch() string {
+ if x != nil {
+ return x.SourceBranch
+ }
+ return ""
+}
+
+// BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch.
+type BranchDatabaseSchemaMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The schemas is the list of schemas in a database.
+ Schemas []*BranchSchemaMetadata `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"`
+ // The character_set is the character set of a database.
+ CharacterSet string `protobuf:"bytes,3,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
+ // The collation is the collation of a database.
+ Collation string `protobuf:"bytes,4,opt,name=collation,proto3" json:"collation,omitempty"`
+ // The extensions is the list of extensions in a database.
+ Extensions []*ExtensionMetadata `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty"`
+ // The database belongs to a datashare.
+ Datashare bool `protobuf:"varint,6,opt,name=datashare,proto3" json:"datashare,omitempty"`
+ // The service name of the database. It's the Oracle specific concept.
+ ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
+}
+
+func (x *BranchDatabaseSchemaMetadata) Reset() {
+ *x = BranchDatabaseSchemaMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchDatabaseSchemaMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchDatabaseSchemaMetadata) ProtoMessage() {}
+
+func (x *BranchDatabaseSchemaMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchDatabaseSchemaMetadata.ProtoReflect.Descriptor instead.
+func (*BranchDatabaseSchemaMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetSchemas() []*BranchSchemaMetadata {
+ if x != nil {
+ return x.Schemas
+ }
+ return nil
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetCharacterSet() string {
+ if x != nil {
+ return x.CharacterSet
+ }
+ return ""
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetCollation() string {
+ if x != nil {
+ return x.Collation
+ }
+ return ""
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetExtensions() []*ExtensionMetadata {
+ if x != nil {
+ return x.Extensions
+ }
+ return nil
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetDatashare() bool {
+ if x != nil {
+ return x.Datashare
+ }
+ return false
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetServiceName() string {
+ if x != nil {
+ return x.ServiceName
+ }
+ return ""
+}
+
+// BranchSchemaMetadata is the metadata for schemas used in branch.
+// This is the concept of schema in Postgres, but it's a no-op for MySQL.
+type BranchSchemaMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the schema name.
+ // It is an empty string for databases without such concept such as MySQL.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The tables is the list of tables in a schema.
+ Tables []*BranchTableMetadata `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`
+ // The external_tables is the list of external tables in a schema.
+ ExternalTables []*BranchExternalTableMetadata `protobuf:"bytes,3,rep,name=external_tables,json=externalTables,proto3" json:"external_tables,omitempty"`
+ // The views is the list of views in a schema.
+ Views []*BranchViewMetadata `protobuf:"bytes,4,rep,name=views,proto3" json:"views,omitempty"`
+ // The functions is the list of functions in a schema.
+ Functions []*BranchFunctionMetadata `protobuf:"bytes,5,rep,name=functions,proto3" json:"functions,omitempty"`
+ // The procedures is the list of procedures in a schema.
+ Procedures []*BranchProcedureMetadata `protobuf:"bytes,6,rep,name=procedures,proto3" json:"procedures,omitempty"`
+ // The streams is the list of streams in a schema, currently, only used for Snowflake.
+ Streams []*BranchStreamMetadata `protobuf:"bytes,7,rep,name=streams,proto3" json:"streams,omitempty"`
+ // The routines is the list of routines in a schema, currently, only used for Snowflake.
+ Tasks []*BranchTaskMetadata `protobuf:"bytes,8,rep,name=tasks,proto3" json:"tasks,omitempty"`
+ // The materialized_views is the list of materialized views in a schema.
+ MaterializedViews []*BranchMaterializedViewMetadata `protobuf:"bytes,9,rep,name=materialized_views,json=materializedViews,proto3" json:"materialized_views,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,10,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchSchemaMetadata) Reset() {
+ *x = BranchSchemaMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchSchemaMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchSchemaMetadata) ProtoMessage() {}
+
+func (x *BranchSchemaMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchSchemaMetadata.ProtoReflect.Descriptor instead.
+func (*BranchSchemaMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *BranchSchemaMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchSchemaMetadata) GetTables() []*BranchTableMetadata {
+ if x != nil {
+ return x.Tables
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetExternalTables() []*BranchExternalTableMetadata {
+ if x != nil {
+ return x.ExternalTables
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetViews() []*BranchViewMetadata {
+ if x != nil {
+ return x.Views
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetFunctions() []*BranchFunctionMetadata {
+ if x != nil {
+ return x.Functions
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetProcedures() []*BranchProcedureMetadata {
+ if x != nil {
+ return x.Procedures
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetStreams() []*BranchStreamMetadata {
+ if x != nil {
+ return x.Streams
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetTasks() []*BranchTaskMetadata {
+ if x != nil {
+ return x.Tasks
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetMaterializedViews() []*BranchMaterializedViewMetadata {
+ if x != nil {
+ return x.MaterializedViews
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchSchemaMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+type BranchTaskMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a task.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The id is the snowflake-generated id of a task.
+ // Example: 01ad32a0-1bb6-5e93-0000-000000000001
+ Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
+ // The owner of the task.
+ Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
+ // The comment of the task.
+ Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The warehouse of the task.
+ Warehouse string `protobuf:"bytes,5,opt,name=warehouse,proto3" json:"warehouse,omitempty"`
+ // The schedule interval of the task.
+ Schedule string `protobuf:"bytes,6,opt,name=schedule,proto3" json:"schedule,omitempty"`
+ // The predecessor tasks of the task.
+ Predecessors []string `protobuf:"bytes,7,rep,name=predecessors,proto3" json:"predecessors,omitempty"`
+ // The state of the task.
+ State BranchTaskMetadata_State `protobuf:"varint,8,opt,name=state,proto3,enum=bytebase.store.BranchTaskMetadata_State" json:"state,omitempty"`
+ // The condition of the task.
+ Condition string `protobuf:"bytes,9,opt,name=condition,proto3" json:"condition,omitempty"`
+ // The definition of the task.
+ Definition string `protobuf:"bytes,10,opt,name=definition,proto3" json:"definition,omitempty"`
+}
+
+func (x *BranchTaskMetadata) Reset() {
+ *x = BranchTaskMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchTaskMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchTaskMetadata) ProtoMessage() {}
+
+func (x *BranchTaskMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchTaskMetadata.ProtoReflect.Descriptor instead.
+func (*BranchTaskMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *BranchTaskMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetWarehouse() string {
+ if x != nil {
+ return x.Warehouse
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetSchedule() string {
+ if x != nil {
+ return x.Schedule
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetPredecessors() []string {
+ if x != nil {
+ return x.Predecessors
+ }
+ return nil
+}
+
+func (x *BranchTaskMetadata) GetState() BranchTaskMetadata_State {
+ if x != nil {
+ return x.State
+ }
+ return BranchTaskMetadata_STATE_UNSPECIFIED
+}
+
+func (x *BranchTaskMetadata) GetCondition() string {
+ if x != nil {
+ return x.Condition
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+type BranchStreamMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a stream.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The table_name is the name of the table/view that the stream is created on.
+ TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
+ // The owner of the stream.
+ Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
+ // The comment of the stream.
+ Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The type of the stream.
+ Type BranchStreamMetadata_Type `protobuf:"varint,5,opt,name=type,proto3,enum=bytebase.store.BranchStreamMetadata_Type" json:"type,omitempty"`
+ // Indicates whether the stream was last read before the `stale_after` time.
+ Stale bool `protobuf:"varint,6,opt,name=stale,proto3" json:"stale,omitempty"`
+ // The mode of the stream.
+ Mode BranchStreamMetadata_Mode `protobuf:"varint,7,opt,name=mode,proto3,enum=bytebase.store.BranchStreamMetadata_Mode" json:"mode,omitempty"`
+ // The definition of the stream.
+ Definition string `protobuf:"bytes,8,opt,name=definition,proto3" json:"definition,omitempty"`
+}
+
+func (x *BranchStreamMetadata) Reset() {
+ *x = BranchStreamMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchStreamMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchStreamMetadata) ProtoMessage() {}
+
+func (x *BranchStreamMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchStreamMetadata.ProtoReflect.Descriptor instead.
+func (*BranchStreamMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *BranchStreamMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchStreamMetadata) GetTableName() string {
+ if x != nil {
+ return x.TableName
+ }
+ return ""
+}
+
+func (x *BranchStreamMetadata) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+func (x *BranchStreamMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchStreamMetadata) GetType() BranchStreamMetadata_Type {
+ if x != nil {
+ return x.Type
+ }
+ return BranchStreamMetadata_TYPE_UNSPECIFIED
+}
+
+func (x *BranchStreamMetadata) GetStale() bool {
+ if x != nil {
+ return x.Stale
+ }
+ return false
+}
+
+func (x *BranchStreamMetadata) GetMode() BranchStreamMetadata_Mode {
+ if x != nil {
+ return x.Mode
+ }
+ return BranchStreamMetadata_MODE_UNSPECIFIED
+}
+
+func (x *BranchStreamMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+// BranchTableMetadata is the metadata for tables used in branch.
+type BranchTableMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a table.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The columns is the ordered list of columns in a table.
+ Columns []*BranchColumnMetadata `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
+ // The indexes is the list of indexes in a table.
+ Indexes []*BranchIndexMetadata `protobuf:"bytes,3,rep,name=indexes,proto3" json:"indexes,omitempty"`
+ // The engine is the engine of a table.
+ Engine string `protobuf:"bytes,4,opt,name=engine,proto3" json:"engine,omitempty"`
+ // The collation is the collation of a table.
+ Collation string `protobuf:"bytes,5,opt,name=collation,proto3" json:"collation,omitempty"`
+ // The row_count is the estimated number of rows of a table.
+ RowCount int64 `protobuf:"varint,6,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
+ // The data_size is the estimated data size of a table.
+ DataSize int64 `protobuf:"varint,7,opt,name=data_size,json=dataSize,proto3" json:"data_size,omitempty"`
+ // The index_size is the estimated index size of a table.
+ IndexSize int64 `protobuf:"varint,8,opt,name=index_size,json=indexSize,proto3" json:"index_size,omitempty"`
+ // The data_free is the estimated free data size of a table.
+ DataFree int64 `protobuf:"varint,9,opt,name=data_free,json=dataFree,proto3" json:"data_free,omitempty"`
+ // The create_options is the create option of a table.
+ CreateOptions string `protobuf:"bytes,10,opt,name=create_options,json=createOptions,proto3" json:"create_options,omitempty"`
+ // The comment is the comment of a table.
+ // classification and user_comment is parsed from the comment.
+ Comment string `protobuf:"bytes,11,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The classification is the classification of a table parsed from the comment.
+ Classification string `protobuf:"bytes,13,opt,name=classification,proto3" json:"classification,omitempty"`
+ // The user_comment is the user comment of a table parsed from the comment.
+ UserComment string `protobuf:"bytes,14,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
+ // The foreign_keys is the list of foreign keys in a table.
+ ForeignKeys []*BranchForeignKeyMetadata `protobuf:"bytes,12,rep,name=foreign_keys,json=foreignKeys,proto3" json:"foreign_keys,omitempty"`
+ // The partitions is the list of partitions in a table.
+ Partitions []*BranchTablePartitionMetadata `protobuf:"bytes,15,rep,name=partitions,proto3" json:"partitions,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,16,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchTableMetadata) Reset() {
+ *x = BranchTableMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchTableMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchTableMetadata) ProtoMessage() {}
+
+func (x *BranchTableMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchTableMetadata.ProtoReflect.Descriptor instead.
+func (*BranchTableMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *BranchTableMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetColumns() []*BranchColumnMetadata {
+ if x != nil {
+ return x.Columns
+ }
+ return nil
+}
+
+func (x *BranchTableMetadata) GetIndexes() []*BranchIndexMetadata {
+ if x != nil {
+ return x.Indexes
+ }
+ return nil
+}
+
+func (x *BranchTableMetadata) GetEngine() string {
+ if x != nil {
+ return x.Engine
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetCollation() string {
+ if x != nil {
+ return x.Collation
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetRowCount() int64 {
+ if x != nil {
+ return x.RowCount
+ }
+ return 0
+}
+
+func (x *BranchTableMetadata) GetDataSize() int64 {
+ if x != nil {
+ return x.DataSize
+ }
+ return 0
+}
+
+func (x *BranchTableMetadata) GetIndexSize() int64 {
+ if x != nil {
+ return x.IndexSize
+ }
+ return 0
+}
+
+func (x *BranchTableMetadata) GetDataFree() int64 {
+ if x != nil {
+ return x.DataFree
+ }
+ return 0
+}
+
+func (x *BranchTableMetadata) GetCreateOptions() string {
+ if x != nil {
+ return x.CreateOptions
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetClassification() string {
+ if x != nil {
+ return x.Classification
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetUserComment() string {
+ if x != nil {
+ return x.UserComment
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetForeignKeys() []*BranchForeignKeyMetadata {
+ if x != nil {
+ return x.ForeignKeys
+ }
+ return nil
+}
+
+func (x *BranchTableMetadata) GetPartitions() []*BranchTablePartitionMetadata {
+ if x != nil {
+ return x.Partitions
+ }
+ return nil
+}
+
+func (x *BranchTableMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+type BranchExternalTableMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a external table.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The external_server_name is the name of the external server.
+ ExternalServerName string `protobuf:"bytes,2,opt,name=external_server_name,json=externalServerName,proto3" json:"external_server_name,omitempty"`
+ // The external_database_name is the name of the external database.
+ ExternalDatabaseName string `protobuf:"bytes,3,opt,name=external_database_name,json=externalDatabaseName,proto3" json:"external_database_name,omitempty"`
+ // The columns is the ordered list of columns in a foreign table.
+ Columns []*BranchColumnMetadata `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
+}
+
+func (x *BranchExternalTableMetadata) Reset() {
+ *x = BranchExternalTableMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchExternalTableMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchExternalTableMetadata) ProtoMessage() {}
+
+func (x *BranchExternalTableMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchExternalTableMetadata.ProtoReflect.Descriptor instead.
+func (*BranchExternalTableMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *BranchExternalTableMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchExternalTableMetadata) GetExternalServerName() string {
+ if x != nil {
+ return x.ExternalServerName
+ }
+ return ""
+}
+
+func (x *BranchExternalTableMetadata) GetExternalDatabaseName() string {
+ if x != nil {
+ return x.ExternalDatabaseName
+ }
+ return ""
+}
+
+func (x *BranchExternalTableMetadata) GetColumns() []*BranchColumnMetadata {
+ if x != nil {
+ return x.Columns
+ }
+ return nil
+}
+
+// BranchTablePartitionMetadata is the metadata for table partitions used in branch.
+type BranchTablePartitionMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a table partition.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The type of a table partition.
+ Type BranchTablePartitionMetadata_Type `protobuf:"varint,2,opt,name=type,proto3,enum=bytebase.store.BranchTablePartitionMetadata_Type" json:"type,omitempty"`
+ // The expression is the expression of a table partition.
+ // For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.
+ // For MySQL, the expression is the `expr` or `column_list` of the following syntax.
+ // PARTITION BY
+ //
+ // { [LINEAR] HASH(expr)
+ // | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ // | RANGE{(expr) | COLUMNS(column_list)}
+ // | LIST{(expr) | COLUMNS(column_list)} }.
+ Expression string `protobuf:"bytes,3,opt,name=expression,proto3" json:"expression,omitempty"`
+ // The value is the value of a table partition.
+ // For MySQL, the value is for RANGE and LIST partition types,
+ // - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+ // - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values.
+ // - For others, it's an empty string.
+ Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
+ // The use_default is whether the users use the default partition, it stores the different value for different database engines.
+ // For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}.
+ UseDefault string `protobuf:"bytes,5,opt,name=use_default,json=useDefault,proto3" json:"use_default,omitempty"`
+ // The subpartitions is the list of subpartitions in a table partition.
+ Subpartitions []*BranchTablePartitionMetadata `protobuf:"bytes,6,rep,name=subpartitions,proto3" json:"subpartitions,omitempty"`
+}
+
+func (x *BranchTablePartitionMetadata) Reset() {
+ *x = BranchTablePartitionMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchTablePartitionMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchTablePartitionMetadata) ProtoMessage() {}
+
+func (x *BranchTablePartitionMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchTablePartitionMetadata.ProtoReflect.Descriptor instead.
+func (*BranchTablePartitionMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *BranchTablePartitionMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchTablePartitionMetadata) GetType() BranchTablePartitionMetadata_Type {
+ if x != nil {
+ return x.Type
+ }
+ return BranchTablePartitionMetadata_TYPE_UNSPECIFIED
+}
+
+func (x *BranchTablePartitionMetadata) GetExpression() string {
+ if x != nil {
+ return x.Expression
+ }
+ return ""
+}
+
+func (x *BranchTablePartitionMetadata) GetValue() string {
+ if x != nil {
+ return x.Value
+ }
+ return ""
+}
+
+func (x *BranchTablePartitionMetadata) GetUseDefault() string {
+ if x != nil {
+ return x.UseDefault
+ }
+ return ""
+}
+
+func (x *BranchTablePartitionMetadata) GetSubpartitions() []*BranchTablePartitionMetadata {
+ if x != nil {
+ return x.Subpartitions
+ }
+ return nil
+}
+
+// BranchColumnMetadata is the metadata for columns used in branch.
+type BranchColumnMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a column.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The position is the position in columns.
+ Position int32 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
+ // The default_value is the default value of a column.
+ //
+ // Types that are assignable to DefaultValue:
+ //
+ // *BranchColumnMetadata_Default
+ // *BranchColumnMetadata_DefaultNull
+ // *BranchColumnMetadata_DefaultExpression
+ DefaultValue isBranchColumnMetadata_DefaultValue `protobuf_oneof:"default_value"`
+ // The on_update is the on update action of a column.
+ // For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value.
+ OnUpdate string `protobuf:"bytes,13,opt,name=on_update,json=onUpdate,proto3" json:"on_update,omitempty"`
+ // The nullable is the nullable of a column.
+ Nullable bool `protobuf:"varint,6,opt,name=nullable,proto3" json:"nullable,omitempty"`
+ // The type is the type of a column.
+ Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
+ // The character_set is the character_set of a column.
+ CharacterSet string `protobuf:"bytes,8,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
+ // The collation is the collation of a column.
+ Collation string `protobuf:"bytes,9,opt,name=collation,proto3" json:"collation,omitempty"`
+ // The comment is the comment of a column.
+ // classification and user_comment is parsed from the comment.
+ Comment string `protobuf:"bytes,10,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The classification is the classification of a table parsed from the comment.
+ Classification string `protobuf:"bytes,11,opt,name=classification,proto3" json:"classification,omitempty"`
+ // The user_comment is the user comment of a table parsed from the comment.
+ UserComment string `protobuf:"bytes,12,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
+}
+
+func (x *BranchColumnMetadata) Reset() {
+ *x = BranchColumnMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchColumnMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchColumnMetadata) ProtoMessage() {}
+
+func (x *BranchColumnMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchColumnMetadata.ProtoReflect.Descriptor instead.
+func (*BranchColumnMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *BranchColumnMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetPosition() int32 {
+ if x != nil {
+ return x.Position
+ }
+ return 0
+}
+
+func (m *BranchColumnMetadata) GetDefaultValue() isBranchColumnMetadata_DefaultValue {
+ if m != nil {
+ return m.DefaultValue
+ }
+ return nil
+}
+
+func (x *BranchColumnMetadata) GetDefault() *wrapperspb.StringValue {
+ if x, ok := x.GetDefaultValue().(*BranchColumnMetadata_Default); ok {
+ return x.Default
+ }
+ return nil
+}
+
+func (x *BranchColumnMetadata) GetDefaultNull() bool {
+ if x, ok := x.GetDefaultValue().(*BranchColumnMetadata_DefaultNull); ok {
+ return x.DefaultNull
+ }
+ return false
+}
+
+func (x *BranchColumnMetadata) GetDefaultExpression() string {
+ if x, ok := x.GetDefaultValue().(*BranchColumnMetadata_DefaultExpression); ok {
+ return x.DefaultExpression
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetOnUpdate() string {
+ if x != nil {
+ return x.OnUpdate
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetNullable() bool {
+ if x != nil {
+ return x.Nullable
+ }
+ return false
+}
+
+func (x *BranchColumnMetadata) GetType() string {
+ if x != nil {
+ return x.Type
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetCharacterSet() string {
+ if x != nil {
+ return x.CharacterSet
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetCollation() string {
+ if x != nil {
+ return x.Collation
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetClassification() string {
+ if x != nil {
+ return x.Classification
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetUserComment() string {
+ if x != nil {
+ return x.UserComment
+ }
+ return ""
+}
+
+type isBranchColumnMetadata_DefaultValue interface {
+ isBranchColumnMetadata_DefaultValue()
+}
+
+type BranchColumnMetadata_Default struct {
+ // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
+ Default *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=default,proto3,oneof"`
+}
+
+type BranchColumnMetadata_DefaultNull struct {
+ DefaultNull bool `protobuf:"varint,4,opt,name=default_null,json=defaultNull,proto3,oneof"`
+}
+
+type BranchColumnMetadata_DefaultExpression struct {
+ DefaultExpression string `protobuf:"bytes,5,opt,name=default_expression,json=defaultExpression,proto3,oneof"`
+}
+
+func (*BranchColumnMetadata_Default) isBranchColumnMetadata_DefaultValue() {}
+
+func (*BranchColumnMetadata_DefaultNull) isBranchColumnMetadata_DefaultValue() {}
+
+func (*BranchColumnMetadata_DefaultExpression) isBranchColumnMetadata_DefaultValue() {}
+
+// BranchViewMetadata is the metadata for views used in branch.
+type BranchViewMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a view.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The definition is the definition of a view.
+ Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
+ // The comment is the comment of a view.
+ Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The dependent_columns is the list of dependent columns of a view.
+ DependentColumns []*BranchDependentColumn `protobuf:"bytes,4,rep,name=dependent_columns,json=dependentColumns,proto3" json:"dependent_columns,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,5,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchViewMetadata) Reset() {
+ *x = BranchViewMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchViewMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchViewMetadata) ProtoMessage() {}
+
+func (x *BranchViewMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchViewMetadata.ProtoReflect.Descriptor instead.
+func (*BranchViewMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *BranchViewMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchViewMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+func (x *BranchViewMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchViewMetadata) GetDependentColumns() []*BranchDependentColumn {
+ if x != nil {
+ return x.DependentColumns
+ }
+ return nil
+}
+
+func (x *BranchViewMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchViewMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+// BranchDependentColumn is the metadata for dependent columns used in branch.
+type BranchDependentColumn struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The schema is the schema of a reference column.
+ Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
+ // The table is the table of a reference column.
+ Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
+ // The column is the name of a reference column.
+ Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`
+}
+
+func (x *BranchDependentColumn) Reset() {
+ *x = BranchDependentColumn{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchDependentColumn) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchDependentColumn) ProtoMessage() {}
+
+func (x *BranchDependentColumn) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[11]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchDependentColumn.ProtoReflect.Descriptor instead.
+func (*BranchDependentColumn) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{11}
+}
+
+func (x *BranchDependentColumn) GetSchema() string {
+ if x != nil {
+ return x.Schema
+ }
+ return ""
+}
+
+func (x *BranchDependentColumn) GetTable() string {
+ if x != nil {
+ return x.Table
+ }
+ return ""
+}
+
+func (x *BranchDependentColumn) GetColumn() string {
+ if x != nil {
+ return x.Column
+ }
+ return ""
+}
+
+// BranchMaterializedViewMetadata is the metadata for materialized views used in branch.
+type BranchMaterializedViewMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a view.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The definition is the definition of a view.
+ Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
+ // The comment is the comment of a view.
+ Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The dependent_columns is the list of dependent columns of a view.
+ DependentColumns []*BranchDependentColumn `protobuf:"bytes,4,rep,name=dependent_columns,json=dependentColumns,proto3" json:"dependent_columns,omitempty"`
+}
+
+func (x *BranchMaterializedViewMetadata) Reset() {
+ *x = BranchMaterializedViewMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[12]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchMaterializedViewMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchMaterializedViewMetadata) ProtoMessage() {}
+
+func (x *BranchMaterializedViewMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[12]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchMaterializedViewMetadata.ProtoReflect.Descriptor instead.
+func (*BranchMaterializedViewMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{12}
+}
+
+func (x *BranchMaterializedViewMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchMaterializedViewMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+func (x *BranchMaterializedViewMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchMaterializedViewMetadata) GetDependentColumns() []*BranchDependentColumn {
+ if x != nil {
+ return x.DependentColumns
+ }
+ return nil
+}
+
+// BranchFunctionMetadata is the metadata for functions used in branch.
+type BranchFunctionMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a function.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The definition is the definition of a function.
+ Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,3,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchFunctionMetadata) Reset() {
+ *x = BranchFunctionMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[13]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchFunctionMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchFunctionMetadata) ProtoMessage() {}
+
+func (x *BranchFunctionMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[13]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchFunctionMetadata.ProtoReflect.Descriptor instead.
+func (*BranchFunctionMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{13}
+}
+
+func (x *BranchFunctionMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchFunctionMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+func (x *BranchFunctionMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchFunctionMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+// BranchProcedureMetadata is the metadata for procedures used in branch.
+type BranchProcedureMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a procedure.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The definition is the definition of a procedure.
+ Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,3,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchProcedureMetadata) Reset() {
+ *x = BranchProcedureMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchProcedureMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchProcedureMetadata) ProtoMessage() {}
+
+func (x *BranchProcedureMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[14]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchProcedureMetadata.ProtoReflect.Descriptor instead.
+func (*BranchProcedureMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{14}
+}
+
+func (x *BranchProcedureMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchProcedureMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+func (x *BranchProcedureMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchProcedureMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+// BranchIndexMetadata is the metadata for indexes used in branch.
+type BranchIndexMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of an index.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The expressions are the ordered columns or expressions of an index.
+ // This could refer to a column or an expression.
+ Expressions []string `protobuf:"bytes,2,rep,name=expressions,proto3" json:"expressions,omitempty"`
+ // The key_lengths are the ordered key lengths of an index.
+ // If the key length is not specified, it's -1.
+ KeyLength []int64 `protobuf:"varint,9,rep,packed,name=key_length,json=keyLength,proto3" json:"key_length,omitempty"`
+ // The type is the type of an index.
+ Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
+ // The unique is whether the index is unique.
+ Unique bool `protobuf:"varint,4,opt,name=unique,proto3" json:"unique,omitempty"`
+ // The primary is whether the index is a primary key index.
+ Primary bool `protobuf:"varint,5,opt,name=primary,proto3" json:"primary,omitempty"`
+ // The visible is whether the index is visible.
+ Visible bool `protobuf:"varint,6,opt,name=visible,proto3" json:"visible,omitempty"`
+ // The comment is the comment of an index.
+ Comment string `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The definition of an index.
+ Definition string `protobuf:"bytes,8,opt,name=definition,proto3" json:"definition,omitempty"`
+}
+
+func (x *BranchIndexMetadata) Reset() {
+ *x = BranchIndexMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_branch_proto_msgTypes[15]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchIndexMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchIndexMetadata) ProtoMessage() {}
+
+func (x *BranchIndexMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[15]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchIndexMetadata.ProtoReflect.Descriptor instead.
+func (*BranchIndexMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{15}
+}
+
+func (x *BranchIndexMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchIndexMetadata) GetExpressions() []string {
+ if x != nil {
+ return x.Expressions
+ }
+ return nil
+}
+
+func (x *BranchIndexMetadata) GetKeyLength() []int64 {
+ if x != nil {
+ return x.KeyLength
+ }
+ return nil
+}
+
+func (x *BranchIndexMetadata) GetType() string {
+ if x != nil {
+ return x.Type
+ }
+ return ""
+}
+
+func (x *BranchIndexMetadata) GetUnique() bool {
+ if x != nil {
+ return x.Unique
+ }
+ return false
+}
+
+func (x *BranchIndexMetadata) GetPrimary() bool {
+ if x != nil {
+ return x.Primary
+ }
+ return false
+}
+
+func (x *BranchIndexMetadata) GetVisible() bool {
+ if x != nil {
+ return x.Visible
+ }
+ return false
+}
+
+func (x *BranchIndexMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchIndexMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+// BranchExtensionMetadata is the metadata for extensions used in branch.
+type BranchExtensionMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of an extension.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The schema is the extension that is installed to. But the extension usage is not limited to the schema.
+ Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
+ // The version is the version of an extension.
+ Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
+ // The description is the description of an extension.
+ Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
}
-func (x *BranchSnapshot) Reset() {
- *x = BranchSnapshot{}
+func (x *BranchExtensionMetadata) Reset() {
+ *x = BranchExtensionMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_branch_proto_msgTypes[0]
+ mi := &file_store_branch_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
-func (x *BranchSnapshot) String() string {
+func (x *BranchExtensionMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*BranchSnapshot) ProtoMessage() {}
+func (*BranchExtensionMetadata) ProtoMessage() {}
-func (x *BranchSnapshot) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[0]
+func (x *BranchExtensionMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -56,57 +1969,83 @@ func (x *BranchSnapshot) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
-// Deprecated: Use BranchSnapshot.ProtoReflect.Descriptor instead.
-func (*BranchSnapshot) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{0}
+// Deprecated: Use BranchExtensionMetadata.ProtoReflect.Descriptor instead.
+func (*BranchExtensionMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{16}
}
-func (x *BranchSnapshot) GetMetadata() *DatabaseSchemaMetadata {
+func (x *BranchExtensionMetadata) GetName() string {
if x != nil {
- return x.Metadata
+ return x.Name
}
- return nil
+ return ""
}
-func (x *BranchSnapshot) GetDatabaseConfig() *DatabaseConfig {
+func (x *BranchExtensionMetadata) GetSchema() string {
if x != nil {
- return x.DatabaseConfig
+ return x.Schema
}
- return nil
+ return ""
}
-type BranchConfig struct {
+func (x *BranchExtensionMetadata) GetVersion() string {
+ if x != nil {
+ return x.Version
+ }
+ return ""
+}
+
+func (x *BranchExtensionMetadata) GetDescription() string {
+ if x != nil {
+ return x.Description
+ }
+ return ""
+}
+
+// BranchForeignKeyMetadata is the metadata for foreign keys used in branch.
+type BranchForeignKeyMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- // The name of source database.
- // Optional.
- // Example: instances/instance-id/databases/database-name.
- SourceDatabase string `protobuf:"bytes,1,opt,name=source_database,json=sourceDatabase,proto3" json:"source_database,omitempty"`
- // The name of the source branch.
- // Optional.
- // Example: projects/project-id/branches/branch-id.
- SourceBranch string `protobuf:"bytes,2,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
+ // The name is the name of a foreign key.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The columns are the ordered referencing columns of a foreign key.
+ Columns []string `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
+ // The referenced_schema is the referenced schema name of a foreign key.
+ // It is an empty string for databases without such concept such as MySQL.
+ ReferencedSchema string `protobuf:"bytes,3,opt,name=referenced_schema,json=referencedSchema,proto3" json:"referenced_schema,omitempty"`
+ // The referenced_table is the referenced table name of a foreign key.
+ ReferencedTable string `protobuf:"bytes,4,opt,name=referenced_table,json=referencedTable,proto3" json:"referenced_table,omitempty"`
+ // The referenced_columns are the ordered referenced columns of a foreign key.
+ ReferencedColumns []string `protobuf:"bytes,5,rep,name=referenced_columns,json=referencedColumns,proto3" json:"referenced_columns,omitempty"`
+ // The on_delete is the on delete action of a foreign key.
+ OnDelete string `protobuf:"bytes,6,opt,name=on_delete,json=onDelete,proto3" json:"on_delete,omitempty"`
+ // The on_update is the on update action of a foreign key.
+ OnUpdate string `protobuf:"bytes,7,opt,name=on_update,json=onUpdate,proto3" json:"on_update,omitempty"`
+ // The match_type is the match type of a foreign key.
+ // The match_type is the PostgreSQL specific field.
+ // It's empty string for other databases.
+ MatchType string `protobuf:"bytes,8,opt,name=match_type,json=matchType,proto3" json:"match_type,omitempty"`
}
-func (x *BranchConfig) Reset() {
- *x = BranchConfig{}
+func (x *BranchForeignKeyMetadata) Reset() {
+ *x = BranchForeignKeyMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_branch_proto_msgTypes[1]
+ mi := &file_store_branch_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
-func (x *BranchConfig) String() string {
+func (x *BranchForeignKeyMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*BranchConfig) ProtoMessage() {}
+func (*BranchForeignKeyMetadata) ProtoMessage() {}
-func (x *BranchConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[1]
+func (x *BranchForeignKeyMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_branch_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -117,21 +2056,63 @@ func (x *BranchConfig) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
-// Deprecated: Use BranchConfig.ProtoReflect.Descriptor instead.
-func (*BranchConfig) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{1}
+// Deprecated: Use BranchForeignKeyMetadata.ProtoReflect.Descriptor instead.
+func (*BranchForeignKeyMetadata) Descriptor() ([]byte, []int) {
+ return file_store_branch_proto_rawDescGZIP(), []int{17}
}
-func (x *BranchConfig) GetSourceDatabase() string {
+func (x *BranchForeignKeyMetadata) GetName() string {
if x != nil {
- return x.SourceDatabase
+ return x.Name
}
return ""
}
-func (x *BranchConfig) GetSourceBranch() string {
+func (x *BranchForeignKeyMetadata) GetColumns() []string {
if x != nil {
- return x.SourceBranch
+ return x.Columns
+ }
+ return nil
+}
+
+func (x *BranchForeignKeyMetadata) GetReferencedSchema() string {
+ if x != nil {
+ return x.ReferencedSchema
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetReferencedTable() string {
+ if x != nil {
+ return x.ReferencedTable
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetReferencedColumns() []string {
+ if x != nil {
+ return x.ReferencedColumns
+ }
+ return nil
+}
+
+func (x *BranchForeignKeyMetadata) GetOnDelete() string {
+ if x != nil {
+ return x.OnDelete
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetOnUpdate() string {
+ if x != nil {
+ return x.OnUpdate
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetMatchType() string {
+ if x != nil {
+ return x.MatchType
}
return ""
}
@@ -141,26 +2122,367 @@ var File_store_branch_proto protoreflect.FileDescriptor
var file_store_branch_proto_rawDesc = []byte{
0x0a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
- 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0e, 0x42,
- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x42, 0x0a,
- 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d,
- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
- 0x61, 0x12, 0x47, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a, 0x0c, 0x42, 0x72,
- 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72,
- 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72,
- 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,
- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
+ 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a,
+ 0x0e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12,
+ 0x42, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
+ 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0x12, 0x47, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,
+ 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a, 0x0c,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f,
+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
+ 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0xb9, 0x02, 0x0a, 0x1c, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+ 0x3e, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
+ 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
+ 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12,
+ 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65,
+ 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
+ 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
+ 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e,
+ 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x73, 0x68, 0x61,
+ 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x73, 0x68,
+ 0x61, 0x72, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc2, 0x05, 0x0a, 0x14, 0x42, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
+ 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73,
+ 0x12, 0x54, 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
+ 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18,
+ 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65,
+ 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73,
+ 0x12, 0x44, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x46, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x09, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64,
+ 0x75, 0x72, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e,
+ 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x12,
+ 0x3e, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b,
+ 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
+ 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12,
+ 0x38, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x5d, 0x0a, 0x12, 0x6d, 0x61, 0x74,
+ 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18,
+ 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74,
+ 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11, 0x6d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69,
+ 0x7a, 0x65, 0x64, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,
+ 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,
+ 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x8c, 0x03, 0x0a, 0x12,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f,
+ 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68,
+ 0x6f, 0x75, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x64, 0x65, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73,
+ 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x64, 0x65, 0x63, 0x65, 0x73,
+ 0x73, 0x6f, 0x72, 0x73, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73,
+ 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e,
+ 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53,
+ 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
+ 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52,
+ 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53,
+ 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x02, 0x22, 0xb7, 0x03, 0x0a, 0x14, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x72, 0x65,
+ 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,
+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x18, 0x06,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x6d,
+ 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e,
+ 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65,
+ 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
+ 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x04, 0x54, 0x79,
+ 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45,
+ 0x5f, 0x44, 0x45, 0x4c, 0x54, 0x41, 0x10, 0x01, 0x22, 0x5a, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65,
+ 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x44,
+ 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45,
+ 0x5f, 0x41, 0x50, 0x50, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x14,
+ 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x45, 0x52, 0x54, 0x5f, 0x4f, 0x4e,
+ 0x4c, 0x59, 0x10, 0x03, 0x22, 0xde, 0x05, 0x0a, 0x13, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54,
+ 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04,
+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
+ 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
+ 0x12, 0x3d, 0x0a, 0x07, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
+ 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x12,
+ 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75,
+ 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
+ 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x53, 0x69, 0x7a, 0x65, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x09, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b,
+ 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x66, 0x72, 0x65, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x46, 0x72, 0x65, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e,
+ 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72,
+ 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x65, 0x69,
+ 0x67, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e,
+ 0x4b, 0x65, 0x79, 0x73, 0x12, 0x4c, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
+ 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x10, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,
+ 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
+ 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xd9, 0x01, 0x0a, 0x1b, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
+ 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x78, 0x74,
+ 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,
+ 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x65,
+ 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x65, 0x78, 0x74,
+ 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d,
+ 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,
+ 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
+ 0x73, 0x22, 0xb1, 0x03, 0x0a, 0x1c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62, 0x6c,
+ 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62, 0x6c,
+ 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a,
+ 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a,
+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75,
+ 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x44, 0x65, 0x66,
+ 0x61, 0x75, 0x6c, 0x74, 0x12, 0x52, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x70, 0x61, 0x72, 0x74, 0x69,
+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61,
+ 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x70, 0x61,
+ 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x41, 0x4e, 0x47, 0x45,
+ 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x43, 0x4f, 0x4c, 0x55,
+ 0x4d, 0x4e, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x03, 0x12,
+ 0x10, 0x0a, 0x0c, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x43, 0x4f, 0x4c, 0x55, 0x4d, 0x4e, 0x53, 0x10,
+ 0x04, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x53, 0x48, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x4c,
+ 0x49, 0x4e, 0x45, 0x41, 0x52, 0x5f, 0x48, 0x41, 0x53, 0x48, 0x10, 0x06, 0x12, 0x07, 0x0a, 0x03,
+ 0x4b, 0x45, 0x59, 0x10, 0x07, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x5f,
+ 0x4b, 0x45, 0x59, 0x10, 0x08, 0x22, 0xdc, 0x03, 0x0a, 0x14, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
+ 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12,
+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
+ 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38,
+ 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52,
+ 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61,
+ 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00,
+ 0x52, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x75, 0x6c, 0x6c, 0x12, 0x2f, 0x0a,
+ 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x64, 0x65, 0x66,
+ 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b,
+ 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x08, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63,
+ 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74,
+ 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18,
+ 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73,
+ 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d,
+ 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x22, 0x99, 0x02, 0x0a, 0x12, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56,
+ 0x69, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+ 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x11, 0x64, 0x65, 0x70,
+ 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x44, 0x65, 0x70, 0x65,
+ 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x10, 0x64, 0x65, 0x70,
+ 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1e, 0x0a,
+ 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,
+ 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a,
+ 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04,
+ 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
+ 0x22, 0x5d, 0x0a, 0x15, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64,
+ 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
+ 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22,
+ 0xc2, 0x01, 0x0a, 0x1e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69,
+ 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69,
+ 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x12, 0x52, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f,
+ 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61,
+ 0x6e, 0x63, 0x68, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75,
+ 0x6d, 0x6e, 0x52, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c,
+ 0x75, 0x6d, 0x6e, 0x73, 0x22, 0xaf, 0x01, 0x0a, 0x16, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x46,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
+ 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,
+ 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
+ 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x17, 0x42, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69,
+ 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
+ 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x84, 0x02, 0x0a, 0x13, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x72,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6b, 0x65, 0x79, 0x5f, 0x6c,
+ 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x09, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x6b, 0x65, 0x79,
+ 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e,
+ 0x69, 0x71, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71,
+ 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07,
+ 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76,
+ 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e,
+ 0x22, 0x81, 0x01, 0x0a, 0x17, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x45, 0x78, 0x74, 0x65, 0x6e,
+ 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04,
+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
+ 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
+ 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
+ 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0x02, 0x0a, 0x18, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x46,
+ 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
+ 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
+ 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x73, 0x63,
+ 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x66, 0x65,
+ 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x29, 0x0a, 0x10,
+ 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
+ 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72,
+ 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20,
+ 0x03, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x43,
+ 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6e, 0x44, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x42,
+ 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f,
+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -175,21 +2497,73 @@ func file_store_branch_proto_rawDescGZIP() []byte {
return file_store_branch_proto_rawDescData
}
-var file_store_branch_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_store_branch_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
+var file_store_branch_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_store_branch_proto_goTypes = []interface{}{
- (*BranchSnapshot)(nil), // 0: bytebase.store.BranchSnapshot
- (*BranchConfig)(nil), // 1: bytebase.store.BranchConfig
- (*DatabaseSchemaMetadata)(nil), // 2: bytebase.store.DatabaseSchemaMetadata
- (*DatabaseConfig)(nil), // 3: bytebase.store.DatabaseConfig
+ (BranchTaskMetadata_State)(0), // 0: bytebase.store.BranchTaskMetadata.State
+ (BranchStreamMetadata_Type)(0), // 1: bytebase.store.BranchStreamMetadata.Type
+ (BranchStreamMetadata_Mode)(0), // 2: bytebase.store.BranchStreamMetadata.Mode
+ (BranchTablePartitionMetadata_Type)(0), // 3: bytebase.store.BranchTablePartitionMetadata.Type
+ (*BranchSnapshot)(nil), // 4: bytebase.store.BranchSnapshot
+ (*BranchConfig)(nil), // 5: bytebase.store.BranchConfig
+ (*BranchDatabaseSchemaMetadata)(nil), // 6: bytebase.store.BranchDatabaseSchemaMetadata
+ (*BranchSchemaMetadata)(nil), // 7: bytebase.store.BranchSchemaMetadata
+ (*BranchTaskMetadata)(nil), // 8: bytebase.store.BranchTaskMetadata
+ (*BranchStreamMetadata)(nil), // 9: bytebase.store.BranchStreamMetadata
+ (*BranchTableMetadata)(nil), // 10: bytebase.store.BranchTableMetadata
+ (*BranchExternalTableMetadata)(nil), // 11: bytebase.store.BranchExternalTableMetadata
+ (*BranchTablePartitionMetadata)(nil), // 12: bytebase.store.BranchTablePartitionMetadata
+ (*BranchColumnMetadata)(nil), // 13: bytebase.store.BranchColumnMetadata
+ (*BranchViewMetadata)(nil), // 14: bytebase.store.BranchViewMetadata
+ (*BranchDependentColumn)(nil), // 15: bytebase.store.BranchDependentColumn
+ (*BranchMaterializedViewMetadata)(nil), // 16: bytebase.store.BranchMaterializedViewMetadata
+ (*BranchFunctionMetadata)(nil), // 17: bytebase.store.BranchFunctionMetadata
+ (*BranchProcedureMetadata)(nil), // 18: bytebase.store.BranchProcedureMetadata
+ (*BranchIndexMetadata)(nil), // 19: bytebase.store.BranchIndexMetadata
+ (*BranchExtensionMetadata)(nil), // 20: bytebase.store.BranchExtensionMetadata
+ (*BranchForeignKeyMetadata)(nil), // 21: bytebase.store.BranchForeignKeyMetadata
+ (*DatabaseSchemaMetadata)(nil), // 22: bytebase.store.DatabaseSchemaMetadata
+ (*DatabaseConfig)(nil), // 23: bytebase.store.DatabaseConfig
+ (*ExtensionMetadata)(nil), // 24: bytebase.store.ExtensionMetadata
+ (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp
+ (*wrapperspb.StringValue)(nil), // 26: google.protobuf.StringValue
}
var file_store_branch_proto_depIdxs = []int32{
- 2, // 0: bytebase.store.BranchSnapshot.metadata:type_name -> bytebase.store.DatabaseSchemaMetadata
- 3, // 1: bytebase.store.BranchSnapshot.database_config:type_name -> bytebase.store.DatabaseConfig
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
+ 22, // 0: bytebase.store.BranchSnapshot.metadata:type_name -> bytebase.store.DatabaseSchemaMetadata
+ 23, // 1: bytebase.store.BranchSnapshot.database_config:type_name -> bytebase.store.DatabaseConfig
+ 7, // 2: bytebase.store.BranchDatabaseSchemaMetadata.schemas:type_name -> bytebase.store.BranchSchemaMetadata
+ 24, // 3: bytebase.store.BranchDatabaseSchemaMetadata.extensions:type_name -> bytebase.store.ExtensionMetadata
+ 10, // 4: bytebase.store.BranchSchemaMetadata.tables:type_name -> bytebase.store.BranchTableMetadata
+ 11, // 5: bytebase.store.BranchSchemaMetadata.external_tables:type_name -> bytebase.store.BranchExternalTableMetadata
+ 14, // 6: bytebase.store.BranchSchemaMetadata.views:type_name -> bytebase.store.BranchViewMetadata
+ 17, // 7: bytebase.store.BranchSchemaMetadata.functions:type_name -> bytebase.store.BranchFunctionMetadata
+ 18, // 8: bytebase.store.BranchSchemaMetadata.procedures:type_name -> bytebase.store.BranchProcedureMetadata
+ 9, // 9: bytebase.store.BranchSchemaMetadata.streams:type_name -> bytebase.store.BranchStreamMetadata
+ 8, // 10: bytebase.store.BranchSchemaMetadata.tasks:type_name -> bytebase.store.BranchTaskMetadata
+ 16, // 11: bytebase.store.BranchSchemaMetadata.materialized_views:type_name -> bytebase.store.BranchMaterializedViewMetadata
+ 25, // 12: bytebase.store.BranchSchemaMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 0, // 13: bytebase.store.BranchTaskMetadata.state:type_name -> bytebase.store.BranchTaskMetadata.State
+ 1, // 14: bytebase.store.BranchStreamMetadata.type:type_name -> bytebase.store.BranchStreamMetadata.Type
+ 2, // 15: bytebase.store.BranchStreamMetadata.mode:type_name -> bytebase.store.BranchStreamMetadata.Mode
+ 13, // 16: bytebase.store.BranchTableMetadata.columns:type_name -> bytebase.store.BranchColumnMetadata
+ 19, // 17: bytebase.store.BranchTableMetadata.indexes:type_name -> bytebase.store.BranchIndexMetadata
+ 21, // 18: bytebase.store.BranchTableMetadata.foreign_keys:type_name -> bytebase.store.BranchForeignKeyMetadata
+ 12, // 19: bytebase.store.BranchTableMetadata.partitions:type_name -> bytebase.store.BranchTablePartitionMetadata
+ 25, // 20: bytebase.store.BranchTableMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 13, // 21: bytebase.store.BranchExternalTableMetadata.columns:type_name -> bytebase.store.BranchColumnMetadata
+ 3, // 22: bytebase.store.BranchTablePartitionMetadata.type:type_name -> bytebase.store.BranchTablePartitionMetadata.Type
+ 12, // 23: bytebase.store.BranchTablePartitionMetadata.subpartitions:type_name -> bytebase.store.BranchTablePartitionMetadata
+ 26, // 24: bytebase.store.BranchColumnMetadata.default:type_name -> google.protobuf.StringValue
+ 15, // 25: bytebase.store.BranchViewMetadata.dependent_columns:type_name -> bytebase.store.BranchDependentColumn
+ 25, // 26: bytebase.store.BranchViewMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 15, // 27: bytebase.store.BranchMaterializedViewMetadata.dependent_columns:type_name -> bytebase.store.BranchDependentColumn
+ 25, // 28: bytebase.store.BranchFunctionMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 25, // 29: bytebase.store.BranchProcedureMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 30, // [30:30] is the sub-list for method output_type
+ 30, // [30:30] is the sub-list for method input_type
+ 30, // [30:30] is the sub-list for extension type_name
+ 30, // [30:30] is the sub-list for extension extendee
+ 0, // [0:30] is the sub-list for field type_name
}
func init() { file_store_branch_proto_init() }
@@ -223,19 +2597,217 @@ func file_store_branch_proto_init() {
return nil
}
}
+ file_store_branch_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchDatabaseSchemaMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchSchemaMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchTaskMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchStreamMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchTableMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchExternalTableMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchTablePartitionMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchColumnMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchViewMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchDependentColumn); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchMaterializedViewMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchFunctionMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchProcedureMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchIndexMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchExtensionMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_branch_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchForeignKeyMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_store_branch_proto_msgTypes[9].OneofWrappers = []interface{}{
+ (*BranchColumnMetadata_Default)(nil),
+ (*BranchColumnMetadata_DefaultNull)(nil),
+ (*BranchColumnMetadata_DefaultExpression)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_branch_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 2,
+ NumEnums: 4,
+ NumMessages: 18,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_store_branch_proto_goTypes,
DependencyIndexes: file_store_branch_proto_depIdxs,
+ EnumInfos: file_store_branch_proto_enumTypes,
MessageInfos: file_store_branch_proto_msgTypes,
}.Build()
File_store_branch_proto = out.File
diff --git a/proto/generated-go/v1/branch_service.pb.go b/proto/generated-go/v1/branch_service.pb.go
index 8f774fc750..b1d6600497 100644
--- a/proto/generated-go/v1/branch_service.pb.go
+++ b/proto/generated-go/v1/branch_service.pb.go
@@ -13,6 +13,7 @@ import (
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
+ wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
reflect "reflect"
sync "sync"
)
@@ -77,6 +78,225 @@ func (BranchView) EnumDescriptor() ([]byte, []int) {
return file_v1_branch_service_proto_rawDescGZIP(), []int{0}
}
+type BranchTaskMetadata_State int32
+
+const (
+ BranchTaskMetadata_STATE_UNSPECIFIED BranchTaskMetadata_State = 0
+ BranchTaskMetadata_STATE_STARTED BranchTaskMetadata_State = 1
+ BranchTaskMetadata_STATE_SUSPENDED BranchTaskMetadata_State = 2
+)
+
+// Enum value maps for BranchTaskMetadata_State.
+var (
+ BranchTaskMetadata_State_name = map[int32]string{
+ 0: "STATE_UNSPECIFIED",
+ 1: "STATE_STARTED",
+ 2: "STATE_SUSPENDED",
+ }
+ BranchTaskMetadata_State_value = map[string]int32{
+ "STATE_UNSPECIFIED": 0,
+ "STATE_STARTED": 1,
+ "STATE_SUSPENDED": 2,
+ }
+)
+
+func (x BranchTaskMetadata_State) Enum() *BranchTaskMetadata_State {
+ p := new(BranchTaskMetadata_State)
+ *p = x
+ return p
+}
+
+func (x BranchTaskMetadata_State) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (BranchTaskMetadata_State) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_branch_service_proto_enumTypes[1].Descriptor()
+}
+
+func (BranchTaskMetadata_State) Type() protoreflect.EnumType {
+ return &file_v1_branch_service_proto_enumTypes[1]
+}
+
+func (x BranchTaskMetadata_State) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use BranchTaskMetadata_State.Descriptor instead.
+func (BranchTaskMetadata_State) EnumDescriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{16, 0}
+}
+
+type BranchStreamMetadata_Type int32
+
+const (
+ BranchStreamMetadata_TYPE_UNSPECIFIED BranchStreamMetadata_Type = 0
+ BranchStreamMetadata_TYPE_DELTA BranchStreamMetadata_Type = 1
+)
+
+// Enum value maps for BranchStreamMetadata_Type.
+var (
+ BranchStreamMetadata_Type_name = map[int32]string{
+ 0: "TYPE_UNSPECIFIED",
+ 1: "TYPE_DELTA",
+ }
+ BranchStreamMetadata_Type_value = map[string]int32{
+ "TYPE_UNSPECIFIED": 0,
+ "TYPE_DELTA": 1,
+ }
+)
+
+func (x BranchStreamMetadata_Type) Enum() *BranchStreamMetadata_Type {
+ p := new(BranchStreamMetadata_Type)
+ *p = x
+ return p
+}
+
+func (x BranchStreamMetadata_Type) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (BranchStreamMetadata_Type) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_branch_service_proto_enumTypes[2].Descriptor()
+}
+
+func (BranchStreamMetadata_Type) Type() protoreflect.EnumType {
+ return &file_v1_branch_service_proto_enumTypes[2]
+}
+
+func (x BranchStreamMetadata_Type) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use BranchStreamMetadata_Type.Descriptor instead.
+func (BranchStreamMetadata_Type) EnumDescriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{17, 0}
+}
+
+type BranchStreamMetadata_Mode int32
+
+const (
+ BranchStreamMetadata_MODE_UNSPECIFIED BranchStreamMetadata_Mode = 0
+ BranchStreamMetadata_MODE_DEFAULT BranchStreamMetadata_Mode = 1
+ BranchStreamMetadata_MODE_APPEND_ONLY BranchStreamMetadata_Mode = 2
+ BranchStreamMetadata_MODE_INSERT_ONLY BranchStreamMetadata_Mode = 3
+)
+
+// Enum value maps for BranchStreamMetadata_Mode.
+var (
+ BranchStreamMetadata_Mode_name = map[int32]string{
+ 0: "MODE_UNSPECIFIED",
+ 1: "MODE_DEFAULT",
+ 2: "MODE_APPEND_ONLY",
+ 3: "MODE_INSERT_ONLY",
+ }
+ BranchStreamMetadata_Mode_value = map[string]int32{
+ "MODE_UNSPECIFIED": 0,
+ "MODE_DEFAULT": 1,
+ "MODE_APPEND_ONLY": 2,
+ "MODE_INSERT_ONLY": 3,
+ }
+)
+
+func (x BranchStreamMetadata_Mode) Enum() *BranchStreamMetadata_Mode {
+ p := new(BranchStreamMetadata_Mode)
+ *p = x
+ return p
+}
+
+func (x BranchStreamMetadata_Mode) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (BranchStreamMetadata_Mode) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_branch_service_proto_enumTypes[3].Descriptor()
+}
+
+func (BranchStreamMetadata_Mode) Type() protoreflect.EnumType {
+ return &file_v1_branch_service_proto_enumTypes[3]
+}
+
+func (x BranchStreamMetadata_Mode) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use BranchStreamMetadata_Mode.Descriptor instead.
+func (BranchStreamMetadata_Mode) EnumDescriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{17, 1}
+}
+
+// Type is the type of a table partition, some database engines may not support all types.
+// Only avilable for the following database engines now:
+// MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)
+// TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY
+// PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+type BranchTablePartitionMetadata_Type int32
+
+const (
+ BranchTablePartitionMetadata_TYPE_UNSPECIFIED BranchTablePartitionMetadata_Type = 0
+ BranchTablePartitionMetadata_RANGE BranchTablePartitionMetadata_Type = 1
+ BranchTablePartitionMetadata_RANGE_COLUMNS BranchTablePartitionMetadata_Type = 2
+ BranchTablePartitionMetadata_LIST BranchTablePartitionMetadata_Type = 3
+ BranchTablePartitionMetadata_LIST_COLUMNS BranchTablePartitionMetadata_Type = 4
+ BranchTablePartitionMetadata_HASH BranchTablePartitionMetadata_Type = 5
+ BranchTablePartitionMetadata_LINEAR_HASH BranchTablePartitionMetadata_Type = 6
+ BranchTablePartitionMetadata_KEY BranchTablePartitionMetadata_Type = 7
+ BranchTablePartitionMetadata_LINEAR_KEY BranchTablePartitionMetadata_Type = 8
+)
+
+// Enum value maps for BranchTablePartitionMetadata_Type.
+var (
+ BranchTablePartitionMetadata_Type_name = map[int32]string{
+ 0: "TYPE_UNSPECIFIED",
+ 1: "RANGE",
+ 2: "RANGE_COLUMNS",
+ 3: "LIST",
+ 4: "LIST_COLUMNS",
+ 5: "HASH",
+ 6: "LINEAR_HASH",
+ 7: "KEY",
+ 8: "LINEAR_KEY",
+ }
+ BranchTablePartitionMetadata_Type_value = map[string]int32{
+ "TYPE_UNSPECIFIED": 0,
+ "RANGE": 1,
+ "RANGE_COLUMNS": 2,
+ "LIST": 3,
+ "LIST_COLUMNS": 4,
+ "HASH": 5,
+ "LINEAR_HASH": 6,
+ "KEY": 7,
+ "LINEAR_KEY": 8,
+ }
+)
+
+func (x BranchTablePartitionMetadata_Type) Enum() *BranchTablePartitionMetadata_Type {
+ p := new(BranchTablePartitionMetadata_Type)
+ *p = x
+ return p
+}
+
+func (x BranchTablePartitionMetadata_Type) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (BranchTablePartitionMetadata_Type) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_branch_service_proto_enumTypes[4].Descriptor()
+}
+
+func (BranchTablePartitionMetadata_Type) Type() protoreflect.EnumType {
+ return &file_v1_branch_service_proto_enumTypes[4]
+}
+
+func (x BranchTablePartitionMetadata_Type) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use BranchTablePartitionMetadata_Type.Descriptor instead.
+func (BranchTablePartitionMetadata_Type) EnumDescriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{20, 0}
+}
+
type Branch struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1183,161 +1403,1922 @@ func (x *DiffMetadataResponse) GetDiff() string {
return ""
}
-var File_v1_branch_service_proto protoreflect.FileDescriptor
+// BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch.
+type BranchDatabaseSchemaMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-var file_v1_branch_service_proto_rawDesc = []byte{
- 0x0a, 0x17, 0x76, 0x31, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76,
- 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
- 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
- 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
- 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b,
- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
- 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f,
- 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65,
- 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
- 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f,
- 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
- 0x19, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72,
- 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x05, 0x0a, 0x06, 0x42,
- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61,
- 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72,
- 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x06, 0x73, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x12, 0x46, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6d,
- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x73, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x0f,
- 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e, 0x62, 0x61, 0x73,
- 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x5d, 0x0a, 0x18, 0x62,
- 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6d,
- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x04, 0xe2, 0x41,
- 0x01, 0x03, 0x52, 0x16, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e,
- 0x67, 0x69, 0x6e, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52,
- 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x31, 0x0a, 0x11, 0x62, 0x61, 0x73, 0x65, 0x6c,
- 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x08, 0x20, 0x01,
- 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x05, 0x52, 0x10, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69,
- 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x0d, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28,
- 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x05, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x42,
- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x0a, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x72, 0x65,
- 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,
- 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,
- 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65,
- 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
- 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,
- 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b,
- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2,
- 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22,
- 0x2c, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb4, 0x01,
- 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70,
- 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
- 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,
- 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,
- 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04,
- 0x76, 0x69, 0x65, 0x77, 0x22, 0x6f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e,
- 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08,
- 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61,
- 0x6e, 0x63, 0x68, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x26, 0x0a,
- 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
- 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x77, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42,
- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63,
- 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x22, 0x99,
- 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x42, 0x04, 0xe2, 0x41, 0x01,
- 0x02, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
- 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x4d,
- 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
- 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x68,
- 0x65, 0x61, 0x64, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x18, 0x0a, 0x04,
- 0x65, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01,
- 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
- 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76,
- 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xdb, 0x01, 0x0a, 0x13,
- 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a,
- 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
- 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6d,
- 0x65, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
- 0x65, 0x74, 0x61, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
- 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c,
- 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x7a, 0x0a, 0x14, 0x52, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x00, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,
- 0x12, 0x29, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6f, 0x6e,
- 0x66, 0x6c, 0x69, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x72,
- 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x45, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42,
- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04,
- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02,
- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x4b, 0x0a, 0x13,
- 0x44, 0x69, 0x66, 0x66, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,
- 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x79, 0x0a, 0x14, 0x44, 0x69, 0x66,
- 0x66, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x69, 0x66, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x04, 0x64, 0x69, 0x66, 0x66, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,
- 0x29, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x66,
- 0x6c, 0x69, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65,
- 0x73, 0x75, 0x6c, 0x74, 0x22, 0xde, 0x01, 0x0a, 0x13, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74,
- 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x0f,
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,
- 0x64, 0x61, 0x74, 0x61, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72,
- 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4c, 0x0a, 0x0f, 0x74, 0x61,
- 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20,
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The schemas is the list of schemas in a database.
+ Schemas []*BranchSchemaMetadata `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"`
+ // The character_set is the character set of a database.
+ CharacterSet string `protobuf:"bytes,3,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
+ // The collation is the collation of a database.
+ Collation string `protobuf:"bytes,4,opt,name=collation,proto3" json:"collation,omitempty"`
+ // The extensions is the list of extensions in a database.
+ Extensions []*ExtensionMetadata `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty"`
+ // The database belongs to a datashare.
+ Datashare bool `protobuf:"varint,6,opt,name=datashare,proto3" json:"datashare,omitempty"`
+ // The service name of the database. It's the Oracle specific concept.
+ ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
+}
+
+func (x *BranchDatabaseSchemaMetadata) Reset() {
+ *x = BranchDatabaseSchemaMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchDatabaseSchemaMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchDatabaseSchemaMetadata) ProtoMessage() {}
+
+func (x *BranchDatabaseSchemaMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[14]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchDatabaseSchemaMetadata.ProtoReflect.Descriptor instead.
+func (*BranchDatabaseSchemaMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{14}
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetSchemas() []*BranchSchemaMetadata {
+ if x != nil {
+ return x.Schemas
+ }
+ return nil
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetCharacterSet() string {
+ if x != nil {
+ return x.CharacterSet
+ }
+ return ""
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetCollation() string {
+ if x != nil {
+ return x.Collation
+ }
+ return ""
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetExtensions() []*ExtensionMetadata {
+ if x != nil {
+ return x.Extensions
+ }
+ return nil
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetDatashare() bool {
+ if x != nil {
+ return x.Datashare
+ }
+ return false
+}
+
+func (x *BranchDatabaseSchemaMetadata) GetServiceName() string {
+ if x != nil {
+ return x.ServiceName
+ }
+ return ""
+}
+
+// BranchSchemaMetadata is the metadata for schemas used in branch.
+// This is the concept of schema in Postgres, but it's a no-op for MySQL.
+type BranchSchemaMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the schema name.
+ // It is an empty string for databases without such concept such as MySQL.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The tables is the list of tables in a schema.
+ Tables []*BranchTableMetadata `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`
+ // The external_tables is the list of external tables in a schema.
+ ExternalTables []*BranchExternalTableMetadata `protobuf:"bytes,3,rep,name=external_tables,json=externalTables,proto3" json:"external_tables,omitempty"`
+ // The views is the list of views in a schema.
+ Views []*BranchViewMetadata `protobuf:"bytes,4,rep,name=views,proto3" json:"views,omitempty"`
+ // The functions is the list of functions in a schema.
+ Functions []*BranchFunctionMetadata `protobuf:"bytes,5,rep,name=functions,proto3" json:"functions,omitempty"`
+ // The procedures is the list of procedures in a schema.
+ Procedures []*BranchProcedureMetadata `protobuf:"bytes,6,rep,name=procedures,proto3" json:"procedures,omitempty"`
+ // The streams is the list of streams in a schema, currently, only used for Snowflake.
+ Streams []*BranchStreamMetadata `protobuf:"bytes,7,rep,name=streams,proto3" json:"streams,omitempty"`
+ // The routines is the list of routines in a schema, currently, only used for Snowflake.
+ Tasks []*BranchTaskMetadata `protobuf:"bytes,8,rep,name=tasks,proto3" json:"tasks,omitempty"`
+ // The materialized_views is the list of materialized views in a schema.
+ MaterializedViews []*BranchMaterializedViewMetadata `protobuf:"bytes,9,rep,name=materialized_views,json=materializedViews,proto3" json:"materialized_views,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,10,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchSchemaMetadata) Reset() {
+ *x = BranchSchemaMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[15]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchSchemaMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchSchemaMetadata) ProtoMessage() {}
+
+func (x *BranchSchemaMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[15]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchSchemaMetadata.ProtoReflect.Descriptor instead.
+func (*BranchSchemaMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{15}
+}
+
+func (x *BranchSchemaMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchSchemaMetadata) GetTables() []*BranchTableMetadata {
+ if x != nil {
+ return x.Tables
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetExternalTables() []*BranchExternalTableMetadata {
+ if x != nil {
+ return x.ExternalTables
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetViews() []*BranchViewMetadata {
+ if x != nil {
+ return x.Views
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetFunctions() []*BranchFunctionMetadata {
+ if x != nil {
+ return x.Functions
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetProcedures() []*BranchProcedureMetadata {
+ if x != nil {
+ return x.Procedures
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetStreams() []*BranchStreamMetadata {
+ if x != nil {
+ return x.Streams
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetTasks() []*BranchTaskMetadata {
+ if x != nil {
+ return x.Tasks
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetMaterializedViews() []*BranchMaterializedViewMetadata {
+ if x != nil {
+ return x.MaterializedViews
+ }
+ return nil
+}
+
+func (x *BranchSchemaMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchSchemaMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+type BranchTaskMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a task.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The id is the snowflake-generated id of a task.
+ // Example: 01ad32a0-1bb6-5e93-0000-000000000001
+ Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
+ // The owner of the task.
+ Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
+ // The comment of the task.
+ Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The warehouse of the task.
+ Warehouse string `protobuf:"bytes,5,opt,name=warehouse,proto3" json:"warehouse,omitempty"`
+ // The schedule interval of the task.
+ Schedule string `protobuf:"bytes,6,opt,name=schedule,proto3" json:"schedule,omitempty"`
+ // The predecessor tasks of the task.
+ Predecessors []string `protobuf:"bytes,7,rep,name=predecessors,proto3" json:"predecessors,omitempty"`
+ // The state of the task.
+ State BranchTaskMetadata_State `protobuf:"varint,8,opt,name=state,proto3,enum=bytebase.v1.BranchTaskMetadata_State" json:"state,omitempty"`
+ // The condition of the task.
+ Condition string `protobuf:"bytes,9,opt,name=condition,proto3" json:"condition,omitempty"`
+ // The definition of the task.
+ Definition string `protobuf:"bytes,10,opt,name=definition,proto3" json:"definition,omitempty"`
+}
+
+func (x *BranchTaskMetadata) Reset() {
+ *x = BranchTaskMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[16]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchTaskMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchTaskMetadata) ProtoMessage() {}
+
+func (x *BranchTaskMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[16]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchTaskMetadata.ProtoReflect.Descriptor instead.
+func (*BranchTaskMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{16}
+}
+
+func (x *BranchTaskMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetWarehouse() string {
+ if x != nil {
+ return x.Warehouse
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetSchedule() string {
+ if x != nil {
+ return x.Schedule
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetPredecessors() []string {
+ if x != nil {
+ return x.Predecessors
+ }
+ return nil
+}
+
+func (x *BranchTaskMetadata) GetState() BranchTaskMetadata_State {
+ if x != nil {
+ return x.State
+ }
+ return BranchTaskMetadata_STATE_UNSPECIFIED
+}
+
+func (x *BranchTaskMetadata) GetCondition() string {
+ if x != nil {
+ return x.Condition
+ }
+ return ""
+}
+
+func (x *BranchTaskMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+type BranchStreamMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a stream.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The table_name is the name of the table/view that the stream is created on.
+ TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
+ // The owner of the stream.
+ Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
+ // The comment of the stream.
+ Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The type of the stream.
+ Type BranchStreamMetadata_Type `protobuf:"varint,5,opt,name=type,proto3,enum=bytebase.v1.BranchStreamMetadata_Type" json:"type,omitempty"`
+ // Indicates whether the stream was last read before the `stale_after` time.
+ Stale bool `protobuf:"varint,6,opt,name=stale,proto3" json:"stale,omitempty"`
+ // The mode of the stream.
+ Mode BranchStreamMetadata_Mode `protobuf:"varint,7,opt,name=mode,proto3,enum=bytebase.v1.BranchStreamMetadata_Mode" json:"mode,omitempty"`
+ // The definition of the stream.
+ Definition string `protobuf:"bytes,8,opt,name=definition,proto3" json:"definition,omitempty"`
+}
+
+func (x *BranchStreamMetadata) Reset() {
+ *x = BranchStreamMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[17]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchStreamMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchStreamMetadata) ProtoMessage() {}
+
+func (x *BranchStreamMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[17]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchStreamMetadata.ProtoReflect.Descriptor instead.
+func (*BranchStreamMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{17}
+}
+
+func (x *BranchStreamMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchStreamMetadata) GetTableName() string {
+ if x != nil {
+ return x.TableName
+ }
+ return ""
+}
+
+func (x *BranchStreamMetadata) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+func (x *BranchStreamMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchStreamMetadata) GetType() BranchStreamMetadata_Type {
+ if x != nil {
+ return x.Type
+ }
+ return BranchStreamMetadata_TYPE_UNSPECIFIED
+}
+
+func (x *BranchStreamMetadata) GetStale() bool {
+ if x != nil {
+ return x.Stale
+ }
+ return false
+}
+
+func (x *BranchStreamMetadata) GetMode() BranchStreamMetadata_Mode {
+ if x != nil {
+ return x.Mode
+ }
+ return BranchStreamMetadata_MODE_UNSPECIFIED
+}
+
+func (x *BranchStreamMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+// BranchTableMetadata is the metadata for tables used in branch.
+type BranchTableMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a table.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The columns is the ordered list of columns in a table.
+ Columns []*BranchColumnMetadata `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
+ // The indexes is the list of indexes in a table.
+ Indexes []*BranchIndexMetadata `protobuf:"bytes,3,rep,name=indexes,proto3" json:"indexes,omitempty"`
+ // The engine is the engine of a table.
+ Engine string `protobuf:"bytes,4,opt,name=engine,proto3" json:"engine,omitempty"`
+ // The collation is the collation of a table.
+ Collation string `protobuf:"bytes,5,opt,name=collation,proto3" json:"collation,omitempty"`
+ // The row_count is the estimated number of rows of a table.
+ RowCount int64 `protobuf:"varint,6,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
+ // The data_size is the estimated data size of a table.
+ DataSize int64 `protobuf:"varint,7,opt,name=data_size,json=dataSize,proto3" json:"data_size,omitempty"`
+ // The index_size is the estimated index size of a table.
+ IndexSize int64 `protobuf:"varint,8,opt,name=index_size,json=indexSize,proto3" json:"index_size,omitempty"`
+ // The data_free is the estimated free data size of a table.
+ DataFree int64 `protobuf:"varint,9,opt,name=data_free,json=dataFree,proto3" json:"data_free,omitempty"`
+ // The create_options is the create option of a table.
+ CreateOptions string `protobuf:"bytes,10,opt,name=create_options,json=createOptions,proto3" json:"create_options,omitempty"`
+ // The comment is the comment of a table.
+ // classification and user_comment is parsed from the comment.
+ Comment string `protobuf:"bytes,11,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The classification is the classification of a table parsed from the comment.
+ Classification string `protobuf:"bytes,13,opt,name=classification,proto3" json:"classification,omitempty"`
+ // The user_comment is the user comment of a table parsed from the comment.
+ UserComment string `protobuf:"bytes,14,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
+ // The foreign_keys is the list of foreign keys in a table.
+ ForeignKeys []*BranchForeignKeyMetadata `protobuf:"bytes,12,rep,name=foreign_keys,json=foreignKeys,proto3" json:"foreign_keys,omitempty"`
+ // The partitions is the list of partitions in a table.
+ Partitions []*BranchTablePartitionMetadata `protobuf:"bytes,15,rep,name=partitions,proto3" json:"partitions,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,16,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchTableMetadata) Reset() {
+ *x = BranchTableMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[18]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchTableMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchTableMetadata) ProtoMessage() {}
+
+func (x *BranchTableMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[18]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchTableMetadata.ProtoReflect.Descriptor instead.
+func (*BranchTableMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{18}
+}
+
+func (x *BranchTableMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetColumns() []*BranchColumnMetadata {
+ if x != nil {
+ return x.Columns
+ }
+ return nil
+}
+
+func (x *BranchTableMetadata) GetIndexes() []*BranchIndexMetadata {
+ if x != nil {
+ return x.Indexes
+ }
+ return nil
+}
+
+func (x *BranchTableMetadata) GetEngine() string {
+ if x != nil {
+ return x.Engine
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetCollation() string {
+ if x != nil {
+ return x.Collation
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetRowCount() int64 {
+ if x != nil {
+ return x.RowCount
+ }
+ return 0
+}
+
+func (x *BranchTableMetadata) GetDataSize() int64 {
+ if x != nil {
+ return x.DataSize
+ }
+ return 0
+}
+
+func (x *BranchTableMetadata) GetIndexSize() int64 {
+ if x != nil {
+ return x.IndexSize
+ }
+ return 0
+}
+
+func (x *BranchTableMetadata) GetDataFree() int64 {
+ if x != nil {
+ return x.DataFree
+ }
+ return 0
+}
+
+func (x *BranchTableMetadata) GetCreateOptions() string {
+ if x != nil {
+ return x.CreateOptions
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetClassification() string {
+ if x != nil {
+ return x.Classification
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetUserComment() string {
+ if x != nil {
+ return x.UserComment
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetForeignKeys() []*BranchForeignKeyMetadata {
+ if x != nil {
+ return x.ForeignKeys
+ }
+ return nil
+}
+
+func (x *BranchTableMetadata) GetPartitions() []*BranchTablePartitionMetadata {
+ if x != nil {
+ return x.Partitions
+ }
+ return nil
+}
+
+func (x *BranchTableMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchTableMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+type BranchExternalTableMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a external table.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The external_server_name is the name of the external server.
+ ExternalServerName string `protobuf:"bytes,2,opt,name=external_server_name,json=externalServerName,proto3" json:"external_server_name,omitempty"`
+ // The external_database_name is the name of the external database.
+ ExternalDatabaseName string `protobuf:"bytes,3,opt,name=external_database_name,json=externalDatabaseName,proto3" json:"external_database_name,omitempty"`
+ // The columns is the ordered list of columns in a foreign table.
+ Columns []*BranchColumnMetadata `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
+}
+
+func (x *BranchExternalTableMetadata) Reset() {
+ *x = BranchExternalTableMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[19]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchExternalTableMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchExternalTableMetadata) ProtoMessage() {}
+
+func (x *BranchExternalTableMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[19]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchExternalTableMetadata.ProtoReflect.Descriptor instead.
+func (*BranchExternalTableMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{19}
+}
+
+func (x *BranchExternalTableMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchExternalTableMetadata) GetExternalServerName() string {
+ if x != nil {
+ return x.ExternalServerName
+ }
+ return ""
+}
+
+func (x *BranchExternalTableMetadata) GetExternalDatabaseName() string {
+ if x != nil {
+ return x.ExternalDatabaseName
+ }
+ return ""
+}
+
+func (x *BranchExternalTableMetadata) GetColumns() []*BranchColumnMetadata {
+ if x != nil {
+ return x.Columns
+ }
+ return nil
+}
+
+// BranchTablePartitionMetadata is the metadata for table partitions used in branch.
+type BranchTablePartitionMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a table partition.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The type of a table partition.
+ Type BranchTablePartitionMetadata_Type `protobuf:"varint,2,opt,name=type,proto3,enum=bytebase.v1.BranchTablePartitionMetadata_Type" json:"type,omitempty"`
+ // The expression is the expression of a table partition.
+ // For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.
+ // For MySQL, the expression is the `expr` or `column_list` of the following syntax.
+ // PARTITION BY
+ //
+ // { [LINEAR] HASH(expr)
+ // | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ // | RANGE{(expr) | COLUMNS(column_list)}
+ // | LIST{(expr) | COLUMNS(column_list)} }.
+ Expression string `protobuf:"bytes,3,opt,name=expression,proto3" json:"expression,omitempty"`
+ // The value is the value of a table partition.
+ // For MySQL, the value is for RANGE and LIST partition types,
+ // - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+ // - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values.
+ // - For others, it's an empty string.
+ Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
+ // The use_default is whether the users use the default partition, it stores the different value for different database engines.
+ // For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}.
+ UseDefault string `protobuf:"bytes,5,opt,name=use_default,json=useDefault,proto3" json:"use_default,omitempty"`
+ // The subpartitions is the list of subpartitions in a table partition.
+ Subpartitions []*BranchTablePartitionMetadata `protobuf:"bytes,6,rep,name=subpartitions,proto3" json:"subpartitions,omitempty"`
+}
+
+func (x *BranchTablePartitionMetadata) Reset() {
+ *x = BranchTablePartitionMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[20]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchTablePartitionMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchTablePartitionMetadata) ProtoMessage() {}
+
+func (x *BranchTablePartitionMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[20]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchTablePartitionMetadata.ProtoReflect.Descriptor instead.
+func (*BranchTablePartitionMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{20}
+}
+
+func (x *BranchTablePartitionMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchTablePartitionMetadata) GetType() BranchTablePartitionMetadata_Type {
+ if x != nil {
+ return x.Type
+ }
+ return BranchTablePartitionMetadata_TYPE_UNSPECIFIED
+}
+
+func (x *BranchTablePartitionMetadata) GetExpression() string {
+ if x != nil {
+ return x.Expression
+ }
+ return ""
+}
+
+func (x *BranchTablePartitionMetadata) GetValue() string {
+ if x != nil {
+ return x.Value
+ }
+ return ""
+}
+
+func (x *BranchTablePartitionMetadata) GetUseDefault() string {
+ if x != nil {
+ return x.UseDefault
+ }
+ return ""
+}
+
+func (x *BranchTablePartitionMetadata) GetSubpartitions() []*BranchTablePartitionMetadata {
+ if x != nil {
+ return x.Subpartitions
+ }
+ return nil
+}
+
+// BranchColumnMetadata is the metadata for columns used in branch.
+type BranchColumnMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a column.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The position is the position in columns.
+ Position int32 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
+ // The default_value is the default value of a column.
+ //
+ // Types that are assignable to DefaultValue:
+ //
+ // *BranchColumnMetadata_Default
+ // *BranchColumnMetadata_DefaultNull
+ // *BranchColumnMetadata_DefaultExpression
+ DefaultValue isBranchColumnMetadata_DefaultValue `protobuf_oneof:"default_value"`
+ // The on_update is the on update action of a column.
+ // For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value.
+ OnUpdate string `protobuf:"bytes,13,opt,name=on_update,json=onUpdate,proto3" json:"on_update,omitempty"`
+ // The nullable is the nullable of a column.
+ Nullable bool `protobuf:"varint,6,opt,name=nullable,proto3" json:"nullable,omitempty"`
+ // The type is the type of a column.
+ Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
+ // The character_set is the character_set of a column.
+ CharacterSet string `protobuf:"bytes,8,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
+ // The collation is the collation of a column.
+ Collation string `protobuf:"bytes,9,opt,name=collation,proto3" json:"collation,omitempty"`
+ // The comment is the comment of a column.
+ // classification and user_comment is parsed from the comment.
+ Comment string `protobuf:"bytes,10,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The classification is the classification of a table parsed from the comment.
+ Classification string `protobuf:"bytes,11,opt,name=classification,proto3" json:"classification,omitempty"`
+ // The user_comment is the user comment of a table parsed from the comment.
+ UserComment string `protobuf:"bytes,12,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
+}
+
+func (x *BranchColumnMetadata) Reset() {
+ *x = BranchColumnMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[21]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchColumnMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchColumnMetadata) ProtoMessage() {}
+
+func (x *BranchColumnMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[21]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchColumnMetadata.ProtoReflect.Descriptor instead.
+func (*BranchColumnMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{21}
+}
+
+func (x *BranchColumnMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetPosition() int32 {
+ if x != nil {
+ return x.Position
+ }
+ return 0
+}
+
+func (m *BranchColumnMetadata) GetDefaultValue() isBranchColumnMetadata_DefaultValue {
+ if m != nil {
+ return m.DefaultValue
+ }
+ return nil
+}
+
+func (x *BranchColumnMetadata) GetDefault() *wrapperspb.StringValue {
+ if x, ok := x.GetDefaultValue().(*BranchColumnMetadata_Default); ok {
+ return x.Default
+ }
+ return nil
+}
+
+func (x *BranchColumnMetadata) GetDefaultNull() bool {
+ if x, ok := x.GetDefaultValue().(*BranchColumnMetadata_DefaultNull); ok {
+ return x.DefaultNull
+ }
+ return false
+}
+
+func (x *BranchColumnMetadata) GetDefaultExpression() string {
+ if x, ok := x.GetDefaultValue().(*BranchColumnMetadata_DefaultExpression); ok {
+ return x.DefaultExpression
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetOnUpdate() string {
+ if x != nil {
+ return x.OnUpdate
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetNullable() bool {
+ if x != nil {
+ return x.Nullable
+ }
+ return false
+}
+
+func (x *BranchColumnMetadata) GetType() string {
+ if x != nil {
+ return x.Type
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetCharacterSet() string {
+ if x != nil {
+ return x.CharacterSet
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetCollation() string {
+ if x != nil {
+ return x.Collation
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetClassification() string {
+ if x != nil {
+ return x.Classification
+ }
+ return ""
+}
+
+func (x *BranchColumnMetadata) GetUserComment() string {
+ if x != nil {
+ return x.UserComment
+ }
+ return ""
+}
+
+type isBranchColumnMetadata_DefaultValue interface {
+ isBranchColumnMetadata_DefaultValue()
+}
+
+type BranchColumnMetadata_Default struct {
+ // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
+ Default *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=default,proto3,oneof"`
+}
+
+type BranchColumnMetadata_DefaultNull struct {
+ DefaultNull bool `protobuf:"varint,4,opt,name=default_null,json=defaultNull,proto3,oneof"`
+}
+
+type BranchColumnMetadata_DefaultExpression struct {
+ DefaultExpression string `protobuf:"bytes,5,opt,name=default_expression,json=defaultExpression,proto3,oneof"`
+}
+
+func (*BranchColumnMetadata_Default) isBranchColumnMetadata_DefaultValue() {}
+
+func (*BranchColumnMetadata_DefaultNull) isBranchColumnMetadata_DefaultValue() {}
+
+func (*BranchColumnMetadata_DefaultExpression) isBranchColumnMetadata_DefaultValue() {}
+
+// BranchViewMetadata is the metadata for views used in branch.
+type BranchViewMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a view.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The definition is the definition of a view.
+ Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
+ // The comment is the comment of a view.
+ Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The dependent_columns is the list of dependent columns of a view.
+ DependentColumns []*BranchDependentColumn `protobuf:"bytes,4,rep,name=dependent_columns,json=dependentColumns,proto3" json:"dependent_columns,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,5,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchViewMetadata) Reset() {
+ *x = BranchViewMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[22]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchViewMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchViewMetadata) ProtoMessage() {}
+
+func (x *BranchViewMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[22]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchViewMetadata.ProtoReflect.Descriptor instead.
+func (*BranchViewMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{22}
+}
+
+func (x *BranchViewMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchViewMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+func (x *BranchViewMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchViewMetadata) GetDependentColumns() []*BranchDependentColumn {
+ if x != nil {
+ return x.DependentColumns
+ }
+ return nil
+}
+
+func (x *BranchViewMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchViewMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+// BranchDependentColumn is the metadata for dependent columns used in branch.
+type BranchDependentColumn struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The schema is the schema of a reference column.
+ Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
+ // The table is the table of a reference column.
+ Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
+ // The column is the name of a reference column.
+ Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`
+}
+
+func (x *BranchDependentColumn) Reset() {
+ *x = BranchDependentColumn{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[23]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchDependentColumn) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchDependentColumn) ProtoMessage() {}
+
+func (x *BranchDependentColumn) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[23]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchDependentColumn.ProtoReflect.Descriptor instead.
+func (*BranchDependentColumn) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{23}
+}
+
+func (x *BranchDependentColumn) GetSchema() string {
+ if x != nil {
+ return x.Schema
+ }
+ return ""
+}
+
+func (x *BranchDependentColumn) GetTable() string {
+ if x != nil {
+ return x.Table
+ }
+ return ""
+}
+
+func (x *BranchDependentColumn) GetColumn() string {
+ if x != nil {
+ return x.Column
+ }
+ return ""
+}
+
+// BranchMaterializedViewMetadata is the metadata for materialized views used in branch.
+type BranchMaterializedViewMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a view.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The definition is the definition of a view.
+ Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
+ // The comment is the comment of a view.
+ Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The dependent_columns is the list of dependent columns of a view.
+ DependentColumns []*BranchDependentColumn `protobuf:"bytes,4,rep,name=dependent_columns,json=dependentColumns,proto3" json:"dependent_columns,omitempty"`
+}
+
+func (x *BranchMaterializedViewMetadata) Reset() {
+ *x = BranchMaterializedViewMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[24]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchMaterializedViewMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchMaterializedViewMetadata) ProtoMessage() {}
+
+func (x *BranchMaterializedViewMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[24]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchMaterializedViewMetadata.ProtoReflect.Descriptor instead.
+func (*BranchMaterializedViewMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{24}
+}
+
+func (x *BranchMaterializedViewMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchMaterializedViewMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+func (x *BranchMaterializedViewMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchMaterializedViewMetadata) GetDependentColumns() []*BranchDependentColumn {
+ if x != nil {
+ return x.DependentColumns
+ }
+ return nil
+}
+
+// BranchFunctionMetadata is the metadata for functions used in branch.
+type BranchFunctionMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a function.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The definition is the definition of a function.
+ Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,3,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchFunctionMetadata) Reset() {
+ *x = BranchFunctionMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[25]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchFunctionMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchFunctionMetadata) ProtoMessage() {}
+
+func (x *BranchFunctionMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[25]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchFunctionMetadata.ProtoReflect.Descriptor instead.
+func (*BranchFunctionMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{25}
+}
+
+func (x *BranchFunctionMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchFunctionMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+func (x *BranchFunctionMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchFunctionMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+// BranchProcedureMetadata is the metadata for procedures used in branch.
+type BranchProcedureMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a procedure.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The definition is the definition of a procedure.
+ Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
+ // The last updater of the object.
+ // Format: users/{email}
+ Updater string `protobuf:"bytes,3,opt,name=updater,proto3" json:"updater,omitempty"`
+ // The timestamp when the object was last updated.
+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+}
+
+func (x *BranchProcedureMetadata) Reset() {
+ *x = BranchProcedureMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[26]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchProcedureMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchProcedureMetadata) ProtoMessage() {}
+
+func (x *BranchProcedureMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[26]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchProcedureMetadata.ProtoReflect.Descriptor instead.
+func (*BranchProcedureMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{26}
+}
+
+func (x *BranchProcedureMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchProcedureMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+func (x *BranchProcedureMetadata) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *BranchProcedureMetadata) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+// BranchIndexMetadata is the metadata for indexes used in branch.
+type BranchIndexMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of an index.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The expressions are the ordered columns or expressions of an index.
+ // This could refer to a column or an expression.
+ Expressions []string `protobuf:"bytes,2,rep,name=expressions,proto3" json:"expressions,omitempty"`
+ // The key_lengths are the ordered key lengths of an index.
+ // If the key length is not specified, it's -1.
+ KeyLength []int64 `protobuf:"varint,9,rep,packed,name=key_length,json=keyLength,proto3" json:"key_length,omitempty"`
+ // The type is the type of an index.
+ Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
+ // The unique is whether the index is unique.
+ Unique bool `protobuf:"varint,4,opt,name=unique,proto3" json:"unique,omitempty"`
+ // The primary is whether the index is a primary key index.
+ Primary bool `protobuf:"varint,5,opt,name=primary,proto3" json:"primary,omitempty"`
+ // The visible is whether the index is visible.
+ Visible bool `protobuf:"varint,6,opt,name=visible,proto3" json:"visible,omitempty"`
+ // The comment is the comment of an index.
+ Comment string `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"`
+ // The definition of an index.
+ Definition string `protobuf:"bytes,8,opt,name=definition,proto3" json:"definition,omitempty"`
+}
+
+func (x *BranchIndexMetadata) Reset() {
+ *x = BranchIndexMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[27]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchIndexMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchIndexMetadata) ProtoMessage() {}
+
+func (x *BranchIndexMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[27]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchIndexMetadata.ProtoReflect.Descriptor instead.
+func (*BranchIndexMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{27}
+}
+
+func (x *BranchIndexMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchIndexMetadata) GetExpressions() []string {
+ if x != nil {
+ return x.Expressions
+ }
+ return nil
+}
+
+func (x *BranchIndexMetadata) GetKeyLength() []int64 {
+ if x != nil {
+ return x.KeyLength
+ }
+ return nil
+}
+
+func (x *BranchIndexMetadata) GetType() string {
+ if x != nil {
+ return x.Type
+ }
+ return ""
+}
+
+func (x *BranchIndexMetadata) GetUnique() bool {
+ if x != nil {
+ return x.Unique
+ }
+ return false
+}
+
+func (x *BranchIndexMetadata) GetPrimary() bool {
+ if x != nil {
+ return x.Primary
+ }
+ return false
+}
+
+func (x *BranchIndexMetadata) GetVisible() bool {
+ if x != nil {
+ return x.Visible
+ }
+ return false
+}
+
+func (x *BranchIndexMetadata) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (x *BranchIndexMetadata) GetDefinition() string {
+ if x != nil {
+ return x.Definition
+ }
+ return ""
+}
+
+// BranchExtensionMetadata is the metadata for extensions used in branch.
+type BranchExtensionMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of an extension.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The schema is the extension that is installed to. But the extension usage is not limited to the schema.
+ Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
+ // The version is the version of an extension.
+ Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
+ // The description is the description of an extension.
+ Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
+}
+
+func (x *BranchExtensionMetadata) Reset() {
+ *x = BranchExtensionMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[28]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchExtensionMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchExtensionMetadata) ProtoMessage() {}
+
+func (x *BranchExtensionMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[28]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchExtensionMetadata.ProtoReflect.Descriptor instead.
+func (*BranchExtensionMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{28}
+}
+
+func (x *BranchExtensionMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchExtensionMetadata) GetSchema() string {
+ if x != nil {
+ return x.Schema
+ }
+ return ""
+}
+
+func (x *BranchExtensionMetadata) GetVersion() string {
+ if x != nil {
+ return x.Version
+ }
+ return ""
+}
+
+func (x *BranchExtensionMetadata) GetDescription() string {
+ if x != nil {
+ return x.Description
+ }
+ return ""
+}
+
+// BranchForeignKeyMetadata is the metadata for foreign keys used in branch.
+type BranchForeignKeyMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a foreign key.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The columns are the ordered referencing columns of a foreign key.
+ Columns []string `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
+ // The referenced_schema is the referenced schema name of a foreign key.
+ // It is an empty string for databases without such concept such as MySQL.
+ ReferencedSchema string `protobuf:"bytes,3,opt,name=referenced_schema,json=referencedSchema,proto3" json:"referenced_schema,omitempty"`
+ // The referenced_table is the referenced table name of a foreign key.
+ ReferencedTable string `protobuf:"bytes,4,opt,name=referenced_table,json=referencedTable,proto3" json:"referenced_table,omitempty"`
+ // The referenced_columns are the ordered referenced columns of a foreign key.
+ ReferencedColumns []string `protobuf:"bytes,5,rep,name=referenced_columns,json=referencedColumns,proto3" json:"referenced_columns,omitempty"`
+ // The on_delete is the on delete action of a foreign key.
+ OnDelete string `protobuf:"bytes,6,opt,name=on_delete,json=onDelete,proto3" json:"on_delete,omitempty"`
+ // The on_update is the on update action of a foreign key.
+ OnUpdate string `protobuf:"bytes,7,opt,name=on_update,json=onUpdate,proto3" json:"on_update,omitempty"`
+ // The match_type is the match type of a foreign key.
+ // The match_type is the PostgreSQL specific field.
+ // It's empty string for other databases.
+ MatchType string `protobuf:"bytes,8,opt,name=match_type,json=matchType,proto3" json:"match_type,omitempty"`
+}
+
+func (x *BranchForeignKeyMetadata) Reset() {
+ *x = BranchForeignKeyMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_branch_service_proto_msgTypes[29]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BranchForeignKeyMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BranchForeignKeyMetadata) ProtoMessage() {}
+
+func (x *BranchForeignKeyMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_branch_service_proto_msgTypes[29]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BranchForeignKeyMetadata.ProtoReflect.Descriptor instead.
+func (*BranchForeignKeyMetadata) Descriptor() ([]byte, []int) {
+ return file_v1_branch_service_proto_rawDescGZIP(), []int{29}
+}
+
+func (x *BranchForeignKeyMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetColumns() []string {
+ if x != nil {
+ return x.Columns
+ }
+ return nil
+}
+
+func (x *BranchForeignKeyMetadata) GetReferencedSchema() string {
+ if x != nil {
+ return x.ReferencedSchema
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetReferencedTable() string {
+ if x != nil {
+ return x.ReferencedTable
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetReferencedColumns() []string {
+ if x != nil {
+ return x.ReferencedColumns
+ }
+ return nil
+}
+
+func (x *BranchForeignKeyMetadata) GetOnDelete() string {
+ if x != nil {
+ return x.OnDelete
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetOnUpdate() string {
+ if x != nil {
+ return x.OnUpdate
+ }
+ return ""
+}
+
+func (x *BranchForeignKeyMetadata) GetMatchType() string {
+ if x != nil {
+ return x.MatchType
+ }
+ return ""
+}
+
+var File_v1_branch_service_proto protoreflect.FileDescriptor
+
+var file_v1_branch_service_proto_rawDesc = []byte{
+ 0x0a, 0x17, 0x76, 0x31, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
+ 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
+ 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
+ 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f,
+ 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65,
+ 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
+ 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f,
+ 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
+ 0x19, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x05, 0x0a, 0x06, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61,
+ 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x06, 0x73, 0x63,
+ 0x68, 0x65, 0x6d, 0x61, 0x12, 0x46, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x73, 0x63,
+ 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x0f,
+ 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e, 0x62, 0x61, 0x73,
+ 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x5d, 0x0a, 0x18, 0x62,
+ 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x04, 0xe2, 0x41,
+ 0x01, 0x03, 0x52, 0x16, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e,
+ 0x67, 0x69, 0x6e, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52,
+ 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x31, 0x0a, 0x11, 0x62, 0x61, 0x73, 0x65, 0x6c,
+ 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x08, 0x20, 0x01,
+ 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x05, 0x52, 0x10, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69,
+ 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x0d, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28,
+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x05, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x0a, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,
+ 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,
+ 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,
+ 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b,
+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2,
+ 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22,
+ 0x2c, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb4, 0x01,
+ 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72,
+ 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70,
+ 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
+ 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,
+ 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,
+ 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04,
+ 0x76, 0x69, 0x65, 0x77, 0x22, 0x6f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e,
+ 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08,
+ 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61,
+ 0x6e, 0x63, 0x68, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x26, 0x0a,
+ 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x77, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x22, 0x99,
+ 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x42, 0x04, 0xe2, 0x41, 0x01,
+ 0x02, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+ 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x4d,
+ 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
+ 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x68,
+ 0x65, 0x61, 0x64, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x18, 0x0a, 0x04,
+ 0x65, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01,
+ 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
+ 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76,
+ 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xdb, 0x01, 0x0a, 0x13,
+ 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a,
+ 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6d,
+ 0x65, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
+ 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+ 0x65, 0x74, 0x61, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
+ 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c,
+ 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x7a, 0x0a, 0x14, 0x52, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x00, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,
+ 0x12, 0x29, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6f, 0x6e,
+ 0x66, 0x6c, 0x69, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x72,
+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x45, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04,
+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x4b, 0x0a, 0x13,
+ 0x44, 0x69, 0x66, 0x66, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,
+ 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x79, 0x0a, 0x14, 0x44, 0x69, 0x66,
+ 0x66, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x69, 0x66, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x64, 0x69, 0x66, 0x66, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,
+ 0x29, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x66,
+ 0x6c, 0x69, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65,
+ 0x73, 0x75, 0x6c, 0x74, 0x22, 0xde, 0x01, 0x0a, 0x13, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x0f,
+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4c, 0x0a, 0x0f, 0x74, 0x61,
+ 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
@@ -1347,90 +3328,421 @@ var file_v1_branch_service_proto_rawDesc = []byte{
0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x2a, 0x0a, 0x14, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
0x04, 0x64, 0x69, 0x66, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69, 0x66,
- 0x66, 0x2a, 0x56, 0x0a, 0x0a, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x12,
- 0x1b, 0x0a, 0x17, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55,
- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11,
- 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49,
- 0x43, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49,
- 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0xba, 0x09, 0x0a, 0x0d, 0x42, 0x72,
- 0x61, 0x6e, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x09, 0x47,
- 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x2f, 0xda, 0x41,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31,
- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
- 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x80, 0x01,
- 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x20,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
- 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
- 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x22, 0x2b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20,
- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73,
- 0x12, 0x85, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63,
- 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x3e, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x2c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28,
- 0x3a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,
- 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x93, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72,
- 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79,
+ 0x66, 0x22, 0xb3, 0x02, 0x0a, 0x1c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72,
+ 0x5f, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72,
+ 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c,
+ 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
+ 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
+ 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65,
+ 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x73, 0x68,
+ 0x61, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x73,
+ 0x68, 0x61, 0x72, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f,
+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xaa, 0x05, 0x0a, 0x14, 0x42, 0x72, 0x61, 0x6e,
+ 0x63, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+ 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x51,
+ 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x45, 0x78, 0x74, 0x65,
+ 0x72, 0x6e, 0x61, 0x6c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x54, 0x61, 0x62, 0x6c, 0x65,
+ 0x73, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
+ 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0x52, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, 0x41, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79,
0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
- 0x22, 0x4c, 0xda, 0x41, 0x12, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2c, 0x75, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x3a, 0x06, 0x62,
- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x62, 0x72, 0x61, 0x6e,
- 0x63, 0x68, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
- 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a,
- 0x0a, 0x0b, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1f, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67,
+ 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x70,
+ 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65,
+ 0x73, 0x12, 0x3b, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x35,
+ 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e,
+ 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05,
+ 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x5a, 0x0a, 0x12, 0x6d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61,
+ 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a,
+ 0x65, 0x64, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11,
+ 0x6d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x69, 0x65, 0x77,
+ 0x73, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01,
+ 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,
+ 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
+ 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x54, 0x69, 0x6d, 0x65, 0x22, 0x89, 0x03, 0x0a, 0x12, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54,
+ 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+ 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
+ 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12,
+ 0x1c, 0x0a, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x12, 0x1a, 0x0a,
+ 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x65,
+ 0x64, 0x65, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52,
+ 0x0c, 0x70, 0x72, 0x65, 0x64, 0x65, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x3b, 0x0a,
+ 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74,
+ 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f,
+ 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63,
+ 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69,
+ 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65,
+ 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74,
+ 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54,
+ 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53,
+ 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x02,
+ 0x22, 0xb1, 0x03, 0x0a, 0x14, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x72, 0x65, 0x61,
+ 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a,
+ 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
+ 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e,
+ 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x04,
+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53,
+ 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x79,
+ 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6c,
+ 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x12, 0x3a,
+ 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e,
+ 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65,
+ 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
+ 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x04, 0x54, 0x79,
+ 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45,
+ 0x5f, 0x44, 0x45, 0x4c, 0x54, 0x41, 0x10, 0x01, 0x22, 0x5a, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65,
+ 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x44,
+ 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45,
+ 0x5f, 0x41, 0x50, 0x50, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x14,
+ 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x45, 0x52, 0x54, 0x5f, 0x4f, 0x4e,
+ 0x4c, 0x59, 0x10, 0x03, 0x22, 0xd2, 0x05, 0x0a, 0x13, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54,
+ 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04,
+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a,
+ 0x07, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61,
+ 0x6e, 0x63, 0x68, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x52, 0x07, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67,
+ 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,
+ 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09,
+ 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x08, 0x64, 0x61, 0x74, 0x61, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x64,
+ 0x65, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x69,
+ 0x6e, 0x64, 0x65, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61,
+ 0x5f, 0x66, 0x72, 0x65, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x61, 0x74,
+ 0x61, 0x46, 0x72, 0x65, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,
+ 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,
+ 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21,
+ 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0e,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x12, 0x48, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6b, 0x65, 0x79,
+ 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x46, 0x6f, 0x72, 0x65,
+ 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0b,
+ 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x49, 0x0a, 0x0a, 0x70,
+ 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74,
+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
+ 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xd6, 0x01, 0x0a, 0x1b, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x54, 0x61, 0x62, 0x6c,
+ 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a,
+ 0x14, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
+ 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x74,
+ 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12,
+ 0x34, 0x0a, 0x16, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x14, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
+ 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
+ 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
+ 0x6e, 0x73, 0x22, 0xab, 0x03, 0x0a, 0x1c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62,
+ 0x6c, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50,
+ 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x65,
+ 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75,
+ 0x6c, 0x74, 0x12, 0x4f, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61,
+ 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10,
+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
+ 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a,
+ 0x0d, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x43, 0x4f, 0x4c, 0x55, 0x4d, 0x4e, 0x53, 0x10, 0x02,
+ 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x49,
+ 0x53, 0x54, 0x5f, 0x43, 0x4f, 0x4c, 0x55, 0x4d, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04,
+ 0x48, 0x41, 0x53, 0x48, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52,
+ 0x5f, 0x48, 0x41, 0x53, 0x48, 0x10, 0x06, 0x12, 0x07, 0x0a, 0x03, 0x4b, 0x45, 0x59, 0x10, 0x07,
+ 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x5f, 0x4b, 0x45, 0x59, 0x10, 0x08,
+ 0x22, 0xdc, 0x03, 0x0a, 0x14, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
+ 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a,
+ 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x07, 0x64, 0x65, 0x66,
+ 0x61, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f,
+ 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72,
+ 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61,
+ 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x66,
+ 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x75, 0x6c, 0x6c, 0x12, 0x2f, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61,
+ 0x75, 0x6c, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45,
+ 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6e, 0x5f,
+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6e,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62,
+ 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62,
+ 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63,
+ 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63,
+ 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63,
+ 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
+ 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61,
+ 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75,
+ 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0f,
+ 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
+ 0x96, 0x02, 0x0a, 0x12, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65,
+ 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
+ 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
+ 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e,
+ 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c,
+ 0x75, 0x6d, 0x6e, 0x52, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f,
+ 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
+ 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
+ 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
+ 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x5d, 0x0a, 0x15, 0x42, 0x72, 0x61, 0x6e,
+ 0x63, 0x68, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
+ 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12,
+ 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0xbf, 0x01, 0x0a, 0x1e, 0x42, 0x72, 0x61, 0x6e,
+ 0x63, 0x68, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x69,
+ 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e,
+ 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18,
+ 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x65,
+ 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e,
+ 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65,
+ 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0xaf, 0x01, 0x0a, 0x16, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69,
+ 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65,
+ 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,
+ 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,
+ 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x17,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
+ 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x07, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41,
+ 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41,
+ 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x84,
+ 0x02, 0x0a, 0x13, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78,
+ 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,
+ 0x0b, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a,
+ 0x6b, 0x65, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x09, 0x20, 0x03, 0x28, 0x03,
+ 0x52, 0x09, 0x6b, 0x65, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74,
+ 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
+ 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
+ 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61,
+ 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72,
+ 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
+ 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74,
+ 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e,
+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x17, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
+ 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a,
+ 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
+ 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
+ 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0x02, 0x0a, 0x18, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
+ 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c,
+ 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
+ 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f,
+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x66,
+ 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12,
+ 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
+ 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
+ 0x6e, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6f,
+ 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
+ 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6e, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74,
+ 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68,
+ 0x54, 0x79, 0x70, 0x65, 0x2a, 0x56, 0x0a, 0x0a, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69,
+ 0x65, 0x77, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45,
+ 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
+ 0x15, 0x0a, 0x11, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42,
+ 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48,
+ 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0xba, 0x09, 0x0a,
+ 0x0d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70,
+ 0x0a, 0x09, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1d, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61,
+ 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22,
+ 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
+ 0x12, 0x80, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65,
+ 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,
+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x65, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x3e, 0xda, 0x41, 0x0d,
+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x28, 0x3a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x1e, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x93, 0x01, 0x0a, 0x0c,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,
0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61,
- 0x6e, 0x63, 0x68, 0x22, 0x35, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x28, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,
- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65,
- 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x0c, 0x52,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x36, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22,
- 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
+ 0x6e, 0x63, 0x68, 0x22, 0x4c, 0xda, 0x41, 0x12, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2c, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31,
+ 0x3a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x62,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x3a, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x61,
- 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
- 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
- 0x74, 0x79, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,
- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73,
- 0x2f, 0x2a, 0x7d, 0x12, 0x91, 0x01, 0x0a, 0x0c, 0x44, 0x69, 0x66, 0x66, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0xda, 0x41, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
- 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62,
- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x0c, 0x44, 0x69, 0x66, 0x66, 0x4d,
- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
- 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61,
- 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x4d, 0x65,
- 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,
- 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x33,
+ 0x7d, 0x12, 0x7a, 0x0a, 0x0b, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
+ 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d,
+ 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x35, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e,
+ 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x12, 0x8b, 0x01,
+ 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x36, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x29, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,
+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0c, 0x44,
+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63,
+ 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x91, 0x01, 0x0a, 0x0c, 0x44, 0x69, 0x66, 0x66, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0xda, 0x41,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x22, 0x2d, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
+ 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69,
+ 0x66, 0x66, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x0c, 0x44, 0x69,
+ 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x64, 0x69, 0x66,
+ 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e,
+ 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -1445,68 +3757,118 @@ func file_v1_branch_service_proto_rawDescGZIP() []byte {
return file_v1_branch_service_proto_rawDescData
}
-var file_v1_branch_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_v1_branch_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
+var file_v1_branch_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
+var file_v1_branch_service_proto_msgTypes = make([]protoimpl.MessageInfo, 30)
var file_v1_branch_service_proto_goTypes = []interface{}{
- (BranchView)(0), // 0: bytebase.v1.BranchView
- (*Branch)(nil), // 1: bytebase.v1.Branch
- (*GetBranchRequest)(nil), // 2: bytebase.v1.GetBranchRequest
- (*ListBranchesRequest)(nil), // 3: bytebase.v1.ListBranchesRequest
- (*ListBranchesResponse)(nil), // 4: bytebase.v1.ListBranchesResponse
- (*CreateBranchRequest)(nil), // 5: bytebase.v1.CreateBranchRequest
- (*UpdateBranchRequest)(nil), // 6: bytebase.v1.UpdateBranchRequest
- (*MergeBranchRequest)(nil), // 7: bytebase.v1.MergeBranchRequest
- (*RebaseBranchRequest)(nil), // 8: bytebase.v1.RebaseBranchRequest
- (*RebaseBranchResponse)(nil), // 9: bytebase.v1.RebaseBranchResponse
- (*DeleteBranchRequest)(nil), // 10: bytebase.v1.DeleteBranchRequest
- (*DiffDatabaseRequest)(nil), // 11: bytebase.v1.DiffDatabaseRequest
- (*DiffDatabaseResponse)(nil), // 12: bytebase.v1.DiffDatabaseResponse
- (*DiffMetadataRequest)(nil), // 13: bytebase.v1.DiffMetadataRequest
- (*DiffMetadataResponse)(nil), // 14: bytebase.v1.DiffMetadataResponse
- (*DatabaseMetadata)(nil), // 15: bytebase.v1.DatabaseMetadata
- (Engine)(0), // 16: bytebase.v1.Engine
- (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp
- (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask
- (*emptypb.Empty)(nil), // 19: google.protobuf.Empty
+ (BranchView)(0), // 0: bytebase.v1.BranchView
+ (BranchTaskMetadata_State)(0), // 1: bytebase.v1.BranchTaskMetadata.State
+ (BranchStreamMetadata_Type)(0), // 2: bytebase.v1.BranchStreamMetadata.Type
+ (BranchStreamMetadata_Mode)(0), // 3: bytebase.v1.BranchStreamMetadata.Mode
+ (BranchTablePartitionMetadata_Type)(0), // 4: bytebase.v1.BranchTablePartitionMetadata.Type
+ (*Branch)(nil), // 5: bytebase.v1.Branch
+ (*GetBranchRequest)(nil), // 6: bytebase.v1.GetBranchRequest
+ (*ListBranchesRequest)(nil), // 7: bytebase.v1.ListBranchesRequest
+ (*ListBranchesResponse)(nil), // 8: bytebase.v1.ListBranchesResponse
+ (*CreateBranchRequest)(nil), // 9: bytebase.v1.CreateBranchRequest
+ (*UpdateBranchRequest)(nil), // 10: bytebase.v1.UpdateBranchRequest
+ (*MergeBranchRequest)(nil), // 11: bytebase.v1.MergeBranchRequest
+ (*RebaseBranchRequest)(nil), // 12: bytebase.v1.RebaseBranchRequest
+ (*RebaseBranchResponse)(nil), // 13: bytebase.v1.RebaseBranchResponse
+ (*DeleteBranchRequest)(nil), // 14: bytebase.v1.DeleteBranchRequest
+ (*DiffDatabaseRequest)(nil), // 15: bytebase.v1.DiffDatabaseRequest
+ (*DiffDatabaseResponse)(nil), // 16: bytebase.v1.DiffDatabaseResponse
+ (*DiffMetadataRequest)(nil), // 17: bytebase.v1.DiffMetadataRequest
+ (*DiffMetadataResponse)(nil), // 18: bytebase.v1.DiffMetadataResponse
+ (*BranchDatabaseSchemaMetadata)(nil), // 19: bytebase.v1.BranchDatabaseSchemaMetadata
+ (*BranchSchemaMetadata)(nil), // 20: bytebase.v1.BranchSchemaMetadata
+ (*BranchTaskMetadata)(nil), // 21: bytebase.v1.BranchTaskMetadata
+ (*BranchStreamMetadata)(nil), // 22: bytebase.v1.BranchStreamMetadata
+ (*BranchTableMetadata)(nil), // 23: bytebase.v1.BranchTableMetadata
+ (*BranchExternalTableMetadata)(nil), // 24: bytebase.v1.BranchExternalTableMetadata
+ (*BranchTablePartitionMetadata)(nil), // 25: bytebase.v1.BranchTablePartitionMetadata
+ (*BranchColumnMetadata)(nil), // 26: bytebase.v1.BranchColumnMetadata
+ (*BranchViewMetadata)(nil), // 27: bytebase.v1.BranchViewMetadata
+ (*BranchDependentColumn)(nil), // 28: bytebase.v1.BranchDependentColumn
+ (*BranchMaterializedViewMetadata)(nil), // 29: bytebase.v1.BranchMaterializedViewMetadata
+ (*BranchFunctionMetadata)(nil), // 30: bytebase.v1.BranchFunctionMetadata
+ (*BranchProcedureMetadata)(nil), // 31: bytebase.v1.BranchProcedureMetadata
+ (*BranchIndexMetadata)(nil), // 32: bytebase.v1.BranchIndexMetadata
+ (*BranchExtensionMetadata)(nil), // 33: bytebase.v1.BranchExtensionMetadata
+ (*BranchForeignKeyMetadata)(nil), // 34: bytebase.v1.BranchForeignKeyMetadata
+ (*DatabaseMetadata)(nil), // 35: bytebase.v1.DatabaseMetadata
+ (Engine)(0), // 36: bytebase.v1.Engine
+ (*timestamppb.Timestamp)(nil), // 37: google.protobuf.Timestamp
+ (*fieldmaskpb.FieldMask)(nil), // 38: google.protobuf.FieldMask
+ (*ExtensionMetadata)(nil), // 39: bytebase.v1.ExtensionMetadata
+ (*wrapperspb.StringValue)(nil), // 40: google.protobuf.StringValue
+ (*emptypb.Empty)(nil), // 41: google.protobuf.Empty
}
var file_v1_branch_service_proto_depIdxs = []int32{
- 15, // 0: bytebase.v1.Branch.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 15, // 1: bytebase.v1.Branch.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 16, // 2: bytebase.v1.Branch.engine:type_name -> bytebase.v1.Engine
- 17, // 3: bytebase.v1.Branch.create_time:type_name -> google.protobuf.Timestamp
- 17, // 4: bytebase.v1.Branch.update_time:type_name -> google.protobuf.Timestamp
+ 35, // 0: bytebase.v1.Branch.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata
+ 35, // 1: bytebase.v1.Branch.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata
+ 36, // 2: bytebase.v1.Branch.engine:type_name -> bytebase.v1.Engine
+ 37, // 3: bytebase.v1.Branch.create_time:type_name -> google.protobuf.Timestamp
+ 37, // 4: bytebase.v1.Branch.update_time:type_name -> google.protobuf.Timestamp
0, // 5: bytebase.v1.ListBranchesRequest.view:type_name -> bytebase.v1.BranchView
- 1, // 6: bytebase.v1.ListBranchesResponse.branches:type_name -> bytebase.v1.Branch
- 1, // 7: bytebase.v1.CreateBranchRequest.branch:type_name -> bytebase.v1.Branch
- 1, // 8: bytebase.v1.UpdateBranchRequest.branch:type_name -> bytebase.v1.Branch
- 18, // 9: bytebase.v1.UpdateBranchRequest.update_mask:type_name -> google.protobuf.FieldMask
- 1, // 10: bytebase.v1.RebaseBranchResponse.branch:type_name -> bytebase.v1.Branch
- 15, // 11: bytebase.v1.DiffMetadataRequest.source_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 15, // 12: bytebase.v1.DiffMetadataRequest.target_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 16, // 13: bytebase.v1.DiffMetadataRequest.engine:type_name -> bytebase.v1.Engine
- 2, // 14: bytebase.v1.BranchService.GetBranch:input_type -> bytebase.v1.GetBranchRequest
- 3, // 15: bytebase.v1.BranchService.ListBranches:input_type -> bytebase.v1.ListBranchesRequest
- 5, // 16: bytebase.v1.BranchService.CreateBranch:input_type -> bytebase.v1.CreateBranchRequest
- 6, // 17: bytebase.v1.BranchService.UpdateBranch:input_type -> bytebase.v1.UpdateBranchRequest
- 7, // 18: bytebase.v1.BranchService.MergeBranch:input_type -> bytebase.v1.MergeBranchRequest
- 8, // 19: bytebase.v1.BranchService.RebaseBranch:input_type -> bytebase.v1.RebaseBranchRequest
- 10, // 20: bytebase.v1.BranchService.DeleteBranch:input_type -> bytebase.v1.DeleteBranchRequest
- 11, // 21: bytebase.v1.BranchService.DiffDatabase:input_type -> bytebase.v1.DiffDatabaseRequest
- 13, // 22: bytebase.v1.BranchService.DiffMetadata:input_type -> bytebase.v1.DiffMetadataRequest
- 1, // 23: bytebase.v1.BranchService.GetBranch:output_type -> bytebase.v1.Branch
- 4, // 24: bytebase.v1.BranchService.ListBranches:output_type -> bytebase.v1.ListBranchesResponse
- 1, // 25: bytebase.v1.BranchService.CreateBranch:output_type -> bytebase.v1.Branch
- 1, // 26: bytebase.v1.BranchService.UpdateBranch:output_type -> bytebase.v1.Branch
- 1, // 27: bytebase.v1.BranchService.MergeBranch:output_type -> bytebase.v1.Branch
- 9, // 28: bytebase.v1.BranchService.RebaseBranch:output_type -> bytebase.v1.RebaseBranchResponse
- 19, // 29: bytebase.v1.BranchService.DeleteBranch:output_type -> google.protobuf.Empty
- 12, // 30: bytebase.v1.BranchService.DiffDatabase:output_type -> bytebase.v1.DiffDatabaseResponse
- 14, // 31: bytebase.v1.BranchService.DiffMetadata:output_type -> bytebase.v1.DiffMetadataResponse
- 23, // [23:32] is the sub-list for method output_type
- 14, // [14:23] is the sub-list for method input_type
- 14, // [14:14] is the sub-list for extension type_name
- 14, // [14:14] is the sub-list for extension extendee
- 0, // [0:14] is the sub-list for field type_name
+ 5, // 6: bytebase.v1.ListBranchesResponse.branches:type_name -> bytebase.v1.Branch
+ 5, // 7: bytebase.v1.CreateBranchRequest.branch:type_name -> bytebase.v1.Branch
+ 5, // 8: bytebase.v1.UpdateBranchRequest.branch:type_name -> bytebase.v1.Branch
+ 38, // 9: bytebase.v1.UpdateBranchRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 5, // 10: bytebase.v1.RebaseBranchResponse.branch:type_name -> bytebase.v1.Branch
+ 35, // 11: bytebase.v1.DiffMetadataRequest.source_metadata:type_name -> bytebase.v1.DatabaseMetadata
+ 35, // 12: bytebase.v1.DiffMetadataRequest.target_metadata:type_name -> bytebase.v1.DatabaseMetadata
+ 36, // 13: bytebase.v1.DiffMetadataRequest.engine:type_name -> bytebase.v1.Engine
+ 20, // 14: bytebase.v1.BranchDatabaseSchemaMetadata.schemas:type_name -> bytebase.v1.BranchSchemaMetadata
+ 39, // 15: bytebase.v1.BranchDatabaseSchemaMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata
+ 23, // 16: bytebase.v1.BranchSchemaMetadata.tables:type_name -> bytebase.v1.BranchTableMetadata
+ 24, // 17: bytebase.v1.BranchSchemaMetadata.external_tables:type_name -> bytebase.v1.BranchExternalTableMetadata
+ 27, // 18: bytebase.v1.BranchSchemaMetadata.views:type_name -> bytebase.v1.BranchViewMetadata
+ 30, // 19: bytebase.v1.BranchSchemaMetadata.functions:type_name -> bytebase.v1.BranchFunctionMetadata
+ 31, // 20: bytebase.v1.BranchSchemaMetadata.procedures:type_name -> bytebase.v1.BranchProcedureMetadata
+ 22, // 21: bytebase.v1.BranchSchemaMetadata.streams:type_name -> bytebase.v1.BranchStreamMetadata
+ 21, // 22: bytebase.v1.BranchSchemaMetadata.tasks:type_name -> bytebase.v1.BranchTaskMetadata
+ 29, // 23: bytebase.v1.BranchSchemaMetadata.materialized_views:type_name -> bytebase.v1.BranchMaterializedViewMetadata
+ 37, // 24: bytebase.v1.BranchSchemaMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 1, // 25: bytebase.v1.BranchTaskMetadata.state:type_name -> bytebase.v1.BranchTaskMetadata.State
+ 2, // 26: bytebase.v1.BranchStreamMetadata.type:type_name -> bytebase.v1.BranchStreamMetadata.Type
+ 3, // 27: bytebase.v1.BranchStreamMetadata.mode:type_name -> bytebase.v1.BranchStreamMetadata.Mode
+ 26, // 28: bytebase.v1.BranchTableMetadata.columns:type_name -> bytebase.v1.BranchColumnMetadata
+ 32, // 29: bytebase.v1.BranchTableMetadata.indexes:type_name -> bytebase.v1.BranchIndexMetadata
+ 34, // 30: bytebase.v1.BranchTableMetadata.foreign_keys:type_name -> bytebase.v1.BranchForeignKeyMetadata
+ 25, // 31: bytebase.v1.BranchTableMetadata.partitions:type_name -> bytebase.v1.BranchTablePartitionMetadata
+ 37, // 32: bytebase.v1.BranchTableMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 26, // 33: bytebase.v1.BranchExternalTableMetadata.columns:type_name -> bytebase.v1.BranchColumnMetadata
+ 4, // 34: bytebase.v1.BranchTablePartitionMetadata.type:type_name -> bytebase.v1.BranchTablePartitionMetadata.Type
+ 25, // 35: bytebase.v1.BranchTablePartitionMetadata.subpartitions:type_name -> bytebase.v1.BranchTablePartitionMetadata
+ 40, // 36: bytebase.v1.BranchColumnMetadata.default:type_name -> google.protobuf.StringValue
+ 28, // 37: bytebase.v1.BranchViewMetadata.dependent_columns:type_name -> bytebase.v1.BranchDependentColumn
+ 37, // 38: bytebase.v1.BranchViewMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 28, // 39: bytebase.v1.BranchMaterializedViewMetadata.dependent_columns:type_name -> bytebase.v1.BranchDependentColumn
+ 37, // 40: bytebase.v1.BranchFunctionMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 37, // 41: bytebase.v1.BranchProcedureMetadata.update_time:type_name -> google.protobuf.Timestamp
+ 6, // 42: bytebase.v1.BranchService.GetBranch:input_type -> bytebase.v1.GetBranchRequest
+ 7, // 43: bytebase.v1.BranchService.ListBranches:input_type -> bytebase.v1.ListBranchesRequest
+ 9, // 44: bytebase.v1.BranchService.CreateBranch:input_type -> bytebase.v1.CreateBranchRequest
+ 10, // 45: bytebase.v1.BranchService.UpdateBranch:input_type -> bytebase.v1.UpdateBranchRequest
+ 11, // 46: bytebase.v1.BranchService.MergeBranch:input_type -> bytebase.v1.MergeBranchRequest
+ 12, // 47: bytebase.v1.BranchService.RebaseBranch:input_type -> bytebase.v1.RebaseBranchRequest
+ 14, // 48: bytebase.v1.BranchService.DeleteBranch:input_type -> bytebase.v1.DeleteBranchRequest
+ 15, // 49: bytebase.v1.BranchService.DiffDatabase:input_type -> bytebase.v1.DiffDatabaseRequest
+ 17, // 50: bytebase.v1.BranchService.DiffMetadata:input_type -> bytebase.v1.DiffMetadataRequest
+ 5, // 51: bytebase.v1.BranchService.GetBranch:output_type -> bytebase.v1.Branch
+ 8, // 52: bytebase.v1.BranchService.ListBranches:output_type -> bytebase.v1.ListBranchesResponse
+ 5, // 53: bytebase.v1.BranchService.CreateBranch:output_type -> bytebase.v1.Branch
+ 5, // 54: bytebase.v1.BranchService.UpdateBranch:output_type -> bytebase.v1.Branch
+ 5, // 55: bytebase.v1.BranchService.MergeBranch:output_type -> bytebase.v1.Branch
+ 13, // 56: bytebase.v1.BranchService.RebaseBranch:output_type -> bytebase.v1.RebaseBranchResponse
+ 41, // 57: bytebase.v1.BranchService.DeleteBranch:output_type -> google.protobuf.Empty
+ 16, // 58: bytebase.v1.BranchService.DiffDatabase:output_type -> bytebase.v1.DiffDatabaseResponse
+ 18, // 59: bytebase.v1.BranchService.DiffMetadata:output_type -> bytebase.v1.DiffMetadataResponse
+ 51, // [51:60] is the sub-list for method output_type
+ 42, // [42:51] is the sub-list for method input_type
+ 42, // [42:42] is the sub-list for extension type_name
+ 42, // [42:42] is the sub-list for extension extendee
+ 0, // [0:42] is the sub-list for field type_name
}
func init() { file_v1_branch_service_proto_init() }
@@ -1685,6 +4047,198 @@ func file_v1_branch_service_proto_init() {
return nil
}
}
+ file_v1_branch_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchDatabaseSchemaMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchSchemaMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchTaskMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchStreamMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchTableMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchExternalTableMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchTablePartitionMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchColumnMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchViewMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchDependentColumn); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchMaterializedViewMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchFunctionMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchProcedureMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchIndexMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchExtensionMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_branch_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BranchForeignKeyMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
}
file_v1_branch_service_proto_msgTypes[8].OneofWrappers = []interface{}{
(*RebaseBranchResponse_Branch)(nil),
@@ -1694,13 +4248,18 @@ func file_v1_branch_service_proto_init() {
(*DiffDatabaseResponse_Schema)(nil),
(*DiffDatabaseResponse_ConflictSchema)(nil),
}
+ file_v1_branch_service_proto_msgTypes[21].OneofWrappers = []interface{}{
+ (*BranchColumnMetadata_Default)(nil),
+ (*BranchColumnMetadata_DefaultNull)(nil),
+ (*BranchColumnMetadata_DefaultExpression)(nil),
+ }
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_branch_service_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 14,
+ NumEnums: 5,
+ NumMessages: 30,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/store/branch.proto b/proto/store/branch.proto
index b56b3f3906..1e07de6d38 100644
--- a/proto/store/branch.proto
+++ b/proto/store/branch.proto
@@ -2,6 +2,9 @@ syntax = "proto3";
package bytebase.store;
+import "google/api/field_behavior.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
import "store/database.proto";
option go_package = "generated-go/store";
@@ -21,3 +24,462 @@ message BranchConfig {
// Example: projects/project-id/branches/branch-id.
string source_branch = 2;
}
+
+// BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch.
+message BranchDatabaseSchemaMetadata {
+ string name = 1;
+
+ // The schemas is the list of schemas in a database.
+ repeated BranchSchemaMetadata schemas = 2;
+
+ // The character_set is the character set of a database.
+ string character_set = 3;
+
+ // The collation is the collation of a database.
+ string collation = 4;
+
+ // The extensions is the list of extensions in a database.
+ repeated ExtensionMetadata extensions = 5;
+
+ // The database belongs to a datashare.
+ bool datashare = 6;
+
+ // The service name of the database. It's the Oracle specific concept.
+ string service_name = 7;
+}
+
+// BranchSchemaMetadata is the metadata for schemas used in branch.
+// This is the concept of schema in Postgres, but it's a no-op for MySQL.
+message BranchSchemaMetadata {
+ // The name is the schema name.
+ // It is an empty string for databases without such concept such as MySQL.
+ string name = 1;
+
+ // The tables is the list of tables in a schema.
+ repeated BranchTableMetadata tables = 2;
+
+ // The external_tables is the list of external tables in a schema.
+ repeated BranchExternalTableMetadata external_tables = 3;
+
+ // The views is the list of views in a schema.
+ repeated BranchViewMetadata views = 4;
+
+ // The functions is the list of functions in a schema.
+ repeated BranchFunctionMetadata functions = 5;
+
+ // The procedures is the list of procedures in a schema.
+ repeated BranchProcedureMetadata procedures = 6;
+
+ // The streams is the list of streams in a schema, currently, only used for Snowflake.
+ repeated BranchStreamMetadata streams = 7;
+
+ // The routines is the list of routines in a schema, currently, only used for Snowflake.
+ repeated BranchTaskMetadata tasks = 8;
+
+ // The materialized_views is the list of materialized views in a schema.
+ repeated BranchMaterializedViewMetadata materialized_views = 9;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+message BranchTaskMetadata {
+ // The name is the name of a task.
+ string name = 1;
+
+ // The id is the snowflake-generated id of a task.
+ // Example: 01ad32a0-1bb6-5e93-0000-000000000001
+ string id = 2;
+
+ // The owner of the task.
+ string owner = 3;
+
+ // The comment of the task.
+ string comment = 4;
+
+ // The warehouse of the task.
+ string warehouse = 5;
+
+ // The schedule interval of the task.
+ string schedule = 6;
+
+ // The predecessor tasks of the task.
+ repeated string predecessors = 7;
+
+ enum State {
+ STATE_UNSPECIFIED = 0;
+ STATE_STARTED = 1;
+ STATE_SUSPENDED = 2;
+ }
+ // The state of the task.
+ State state = 8;
+
+ // The condition of the task.
+ string condition = 9;
+
+ // The definition of the task.
+ string definition = 10;
+}
+
+message BranchStreamMetadata {
+ // The name is the name of a stream.
+ string name = 1;
+
+ // The table_name is the name of the table/view that the stream is created on.
+ string table_name = 2;
+
+ // The owner of the stream.
+ string owner = 3;
+
+ // The comment of the stream.
+ string comment = 4;
+
+ enum Type {
+ TYPE_UNSPECIFIED = 0;
+ TYPE_DELTA = 1;
+ }
+ // The type of the stream.
+ Type type = 5;
+
+ // Indicates whether the stream was last read before the `stale_after` time.
+ bool stale = 6;
+
+ enum Mode {
+ MODE_UNSPECIFIED = 0;
+ MODE_DEFAULT = 1;
+ MODE_APPEND_ONLY = 2;
+ MODE_INSERT_ONLY = 3;
+ }
+ // The mode of the stream.
+ Mode mode = 7;
+
+ // The definition of the stream.
+ string definition = 8;
+}
+
+// BranchTableMetadata is the metadata for tables used in branch.
+message BranchTableMetadata {
+ // The name is the name of a table.
+ string name = 1;
+
+ // The columns is the ordered list of columns in a table.
+ repeated BranchColumnMetadata columns = 2;
+
+ // The indexes is the list of indexes in a table.
+ repeated BranchIndexMetadata indexes = 3;
+
+ // TODO(d): figure out whether we need to store table type such as "BASE TABLE".
+
+ // The engine is the engine of a table.
+ string engine = 4;
+
+ // The collation is the collation of a table.
+ string collation = 5;
+
+ // The row_count is the estimated number of rows of a table.
+ int64 row_count = 6;
+
+ // The data_size is the estimated data size of a table.
+ int64 data_size = 7;
+
+ // The index_size is the estimated index size of a table.
+ int64 index_size = 8;
+
+ // The data_free is the estimated free data size of a table.
+ int64 data_free = 9;
+
+ // The create_options is the create option of a table.
+ string create_options = 10;
+
+ // The comment is the comment of a table.
+ // classification and user_comment is parsed from the comment.
+ string comment = 11;
+
+ // The classification is the classification of a table parsed from the comment.
+ string classification = 13;
+
+ // The user_comment is the user comment of a table parsed from the comment.
+ string user_comment = 14;
+
+ // The foreign_keys is the list of foreign keys in a table.
+ repeated BranchForeignKeyMetadata foreign_keys = 12;
+
+ // The partitions is the list of partitions in a table.
+ repeated BranchTablePartitionMetadata partitions = 15;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+message BranchExternalTableMetadata {
+ // The name is the name of a external table.
+ string name = 1;
+
+ // The external_server_name is the name of the external server.
+ string external_server_name = 2;
+
+ // The external_database_name is the name of the external database.
+ string external_database_name = 3;
+
+ // The columns is the ordered list of columns in a foreign table.
+ repeated BranchColumnMetadata columns = 4;
+}
+
+// BranchTablePartitionMetadata is the metadata for table partitions used in branch.
+message BranchTablePartitionMetadata {
+ // The name is the name of a table partition.
+ string name = 1;
+
+ // Type is the type of a table partition, some database engines may not support all types.
+ // Only avilable for the following database engines now:
+ // MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)
+ // TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY
+ // PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+ enum Type {
+ TYPE_UNSPECIFIED = 0;
+ RANGE = 1;
+ RANGE_COLUMNS = 2;
+ LIST = 3;
+ LIST_COLUMNS = 4;
+ HASH = 5;
+ LINEAR_HASH = 6;
+ KEY = 7;
+ LINEAR_KEY = 8;
+ }
+
+ // The type of a table partition.
+ Type type = 2;
+
+ // The expression is the expression of a table partition.
+ // For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.
+ // For MySQL, the expression is the `expr` or `column_list` of the following syntax.
+ // PARTITION BY
+ // { [LINEAR] HASH(expr)
+ // | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ // | RANGE{(expr) | COLUMNS(column_list)}
+ // | LIST{(expr) | COLUMNS(column_list)} }.
+ string expression = 3;
+
+ // The value is the value of a table partition.
+ // For MySQL, the value is for RANGE and LIST partition types,
+ // - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+ // - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values.
+ // - For others, it's an empty string.
+ string value = 4;
+
+ // The use_default is whether the users use the default partition, it stores the different value for different database engines.
+ // For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}.
+ string use_default = 5;
+
+ // The subpartitions is the list of subpartitions in a table partition.
+ repeated BranchTablePartitionMetadata subpartitions = 6;
+}
+
+// BranchColumnMetadata is the metadata for columns used in branch.
+message BranchColumnMetadata {
+ // The name is the name of a column.
+ string name = 1;
+
+ // The position is the position in columns.
+ int32 position = 2;
+
+ // The default_value is the default value of a column.
+ oneof default_value {
+ // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
+ google.protobuf.StringValue default = 3;
+ bool default_null = 4;
+ string default_expression = 5;
+ }
+
+ // The on_update is the on update action of a column.
+ // For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value.
+ string on_update = 13;
+
+ // The nullable is the nullable of a column.
+ bool nullable = 6;
+
+ // The type is the type of a column.
+ string type = 7;
+
+ // The character_set is the character_set of a column.
+ string character_set = 8;
+
+ // The collation is the collation of a column.
+ string collation = 9;
+
+ // The comment is the comment of a column.
+ // classification and user_comment is parsed from the comment.
+ string comment = 10;
+
+ // The classification is the classification of a table parsed from the comment.
+ string classification = 11;
+
+ // The user_comment is the user comment of a table parsed from the comment.
+ string user_comment = 12;
+}
+
+// BranchViewMetadata is the metadata for views used in branch.
+message BranchViewMetadata {
+ // The name is the name of a view.
+ string name = 1;
+
+ // The definition is the definition of a view.
+ string definition = 2;
+
+ // The comment is the comment of a view.
+ string comment = 3;
+
+ // The dependent_columns is the list of dependent columns of a view.
+ repeated BranchDependentColumn dependent_columns = 4;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// BranchDependentColumn is the metadata for dependent columns used in branch.
+message BranchDependentColumn {
+ // The schema is the schema of a reference column.
+ string schema = 1;
+
+ // The table is the table of a reference column.
+ string table = 2;
+
+ // The column is the name of a reference column.
+ string column = 3;
+}
+
+// BranchMaterializedViewMetadata is the metadata for materialized views used in branch.
+message BranchMaterializedViewMetadata {
+ // The name is the name of a view.
+ string name = 1;
+
+ // The definition is the definition of a view.
+ string definition = 2;
+
+ // The comment is the comment of a view.
+ string comment = 3;
+
+ // The dependent_columns is the list of dependent columns of a view.
+ repeated BranchDependentColumn dependent_columns = 4;
+}
+
+// BranchFunctionMetadata is the metadata for functions used in branch.
+message BranchFunctionMetadata {
+ // The name is the name of a function.
+ string name = 1;
+
+ // The definition is the definition of a function.
+ string definition = 2;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// BranchProcedureMetadata is the metadata for procedures used in branch.
+message BranchProcedureMetadata {
+ // The name is the name of a procedure.
+ string name = 1;
+
+ // The definition is the definition of a procedure.
+ string definition = 2;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// BranchIndexMetadata is the metadata for indexes used in branch.
+message BranchIndexMetadata {
+ // The name is the name of an index.
+ string name = 1;
+
+ // The expressions are the ordered columns or expressions of an index.
+ // This could refer to a column or an expression.
+ repeated string expressions = 2;
+
+ // The key_lengths are the ordered key lengths of an index.
+ // If the key length is not specified, it's -1.
+ repeated int64 key_length = 9;
+
+ // The type is the type of an index.
+ string type = 3;
+
+ // The unique is whether the index is unique.
+ bool unique = 4;
+
+ // The primary is whether the index is a primary key index.
+ bool primary = 5;
+
+ // The visible is whether the index is visible.
+ bool visible = 6;
+
+ // The comment is the comment of an index.
+ string comment = 7;
+
+ // The definition of an index.
+ string definition = 8;
+}
+
+// BranchExtensionMetadata is the metadata for extensions used in branch.
+message BranchExtensionMetadata {
+ // The name is the name of an extension.
+ string name = 1;
+
+ // The schema is the extension that is installed to. But the extension usage is not limited to the schema.
+ string schema = 2;
+
+ // The version is the version of an extension.
+ string version = 3;
+
+ // The description is the description of an extension.
+ string description = 4;
+}
+
+// BranchForeignKeyMetadata is the metadata for foreign keys used in branch.
+message BranchForeignKeyMetadata {
+ // The name is the name of a foreign key.
+ string name = 1;
+
+ // The columns are the ordered referencing columns of a foreign key.
+ repeated string columns = 2;
+
+ // The referenced_schema is the referenced schema name of a foreign key.
+ // It is an empty string for databases without such concept such as MySQL.
+ string referenced_schema = 3;
+
+ // The referenced_table is the referenced table name of a foreign key.
+ string referenced_table = 4;
+
+ // The referenced_columns are the ordered referenced columns of a foreign key.
+ repeated string referenced_columns = 5;
+
+ // The on_delete is the on delete action of a foreign key.
+ string on_delete = 6;
+
+ // The on_update is the on update action of a foreign key.
+ string on_update = 7;
+
+ // The match_type is the match type of a foreign key.
+ // The match_type is the PostgreSQL specific field.
+ // It's empty string for other databases.
+ string match_type = 8;
+}
diff --git a/proto/v1/branch_service.proto b/proto/v1/branch_service.proto
index f1e777e8e2..12c7f34970 100644
--- a/proto/v1/branch_service.proto
+++ b/proto/v1/branch_service.proto
@@ -8,6 +8,7 @@ import "google/api/field_behavior.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
import "v1/common.proto";
import "v1/database_service.proto";
@@ -317,3 +318,462 @@ message DiffMetadataResponse {
// The diff of the metadata.
string diff = 1;
}
+
+// BranchDatabaseSchemaMetadata is the schema metadata for databases used in branch.
+message BranchDatabaseSchemaMetadata {
+ string name = 1;
+
+ // The schemas is the list of schemas in a database.
+ repeated BranchSchemaMetadata schemas = 2;
+
+ // The character_set is the character set of a database.
+ string character_set = 3;
+
+ // The collation is the collation of a database.
+ string collation = 4;
+
+ // The extensions is the list of extensions in a database.
+ repeated ExtensionMetadata extensions = 5;
+
+ // The database belongs to a datashare.
+ bool datashare = 6;
+
+ // The service name of the database. It's the Oracle specific concept.
+ string service_name = 7;
+}
+
+// BranchSchemaMetadata is the metadata for schemas used in branch.
+// This is the concept of schema in Postgres, but it's a no-op for MySQL.
+message BranchSchemaMetadata {
+ // The name is the schema name.
+ // It is an empty string for databases without such concept such as MySQL.
+ string name = 1;
+
+ // The tables is the list of tables in a schema.
+ repeated BranchTableMetadata tables = 2;
+
+ // The external_tables is the list of external tables in a schema.
+ repeated BranchExternalTableMetadata external_tables = 3;
+
+ // The views is the list of views in a schema.
+ repeated BranchViewMetadata views = 4;
+
+ // The functions is the list of functions in a schema.
+ repeated BranchFunctionMetadata functions = 5;
+
+ // The procedures is the list of procedures in a schema.
+ repeated BranchProcedureMetadata procedures = 6;
+
+ // The streams is the list of streams in a schema, currently, only used for Snowflake.
+ repeated BranchStreamMetadata streams = 7;
+
+ // The routines is the list of routines in a schema, currently, only used for Snowflake.
+ repeated BranchTaskMetadata tasks = 8;
+
+ // The materialized_views is the list of materialized views in a schema.
+ repeated BranchMaterializedViewMetadata materialized_views = 9;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+message BranchTaskMetadata {
+ // The name is the name of a task.
+ string name = 1;
+
+ // The id is the snowflake-generated id of a task.
+ // Example: 01ad32a0-1bb6-5e93-0000-000000000001
+ string id = 2;
+
+ // The owner of the task.
+ string owner = 3;
+
+ // The comment of the task.
+ string comment = 4;
+
+ // The warehouse of the task.
+ string warehouse = 5;
+
+ // The schedule interval of the task.
+ string schedule = 6;
+
+ // The predecessor tasks of the task.
+ repeated string predecessors = 7;
+
+ enum State {
+ STATE_UNSPECIFIED = 0;
+ STATE_STARTED = 1;
+ STATE_SUSPENDED = 2;
+ }
+ // The state of the task.
+ State state = 8;
+
+ // The condition of the task.
+ string condition = 9;
+
+ // The definition of the task.
+ string definition = 10;
+}
+
+message BranchStreamMetadata {
+ // The name is the name of a stream.
+ string name = 1;
+
+ // The table_name is the name of the table/view that the stream is created on.
+ string table_name = 2;
+
+ // The owner of the stream.
+ string owner = 3;
+
+ // The comment of the stream.
+ string comment = 4;
+
+ enum Type {
+ TYPE_UNSPECIFIED = 0;
+ TYPE_DELTA = 1;
+ }
+ // The type of the stream.
+ Type type = 5;
+
+ // Indicates whether the stream was last read before the `stale_after` time.
+ bool stale = 6;
+
+ enum Mode {
+ MODE_UNSPECIFIED = 0;
+ MODE_DEFAULT = 1;
+ MODE_APPEND_ONLY = 2;
+ MODE_INSERT_ONLY = 3;
+ }
+ // The mode of the stream.
+ Mode mode = 7;
+
+ // The definition of the stream.
+ string definition = 8;
+}
+
+// BranchTableMetadata is the metadata for tables used in branch.
+message BranchTableMetadata {
+ // The name is the name of a table.
+ string name = 1;
+
+ // The columns is the ordered list of columns in a table.
+ repeated BranchColumnMetadata columns = 2;
+
+ // The indexes is the list of indexes in a table.
+ repeated BranchIndexMetadata indexes = 3;
+
+ // TODO(d): figure out whether we need to store table type such as "BASE TABLE".
+
+ // The engine is the engine of a table.
+ string engine = 4;
+
+ // The collation is the collation of a table.
+ string collation = 5;
+
+ // The row_count is the estimated number of rows of a table.
+ int64 row_count = 6;
+
+ // The data_size is the estimated data size of a table.
+ int64 data_size = 7;
+
+ // The index_size is the estimated index size of a table.
+ int64 index_size = 8;
+
+ // The data_free is the estimated free data size of a table.
+ int64 data_free = 9;
+
+ // The create_options is the create option of a table.
+ string create_options = 10;
+
+ // The comment is the comment of a table.
+ // classification and user_comment is parsed from the comment.
+ string comment = 11;
+
+ // The classification is the classification of a table parsed from the comment.
+ string classification = 13;
+
+ // The user_comment is the user comment of a table parsed from the comment.
+ string user_comment = 14;
+
+ // The foreign_keys is the list of foreign keys in a table.
+ repeated BranchForeignKeyMetadata foreign_keys = 12;
+
+ // The partitions is the list of partitions in a table.
+ repeated BranchTablePartitionMetadata partitions = 15;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+message BranchExternalTableMetadata {
+ // The name is the name of a external table.
+ string name = 1;
+
+ // The external_server_name is the name of the external server.
+ string external_server_name = 2;
+
+ // The external_database_name is the name of the external database.
+ string external_database_name = 3;
+
+ // The columns is the ordered list of columns in a foreign table.
+ repeated BranchColumnMetadata columns = 4;
+}
+
+// BranchTablePartitionMetadata is the metadata for table partitions used in branch.
+message BranchTablePartitionMetadata {
+ // The name is the name of a table partition.
+ string name = 1;
+
+ // Type is the type of a table partition, some database engines may not support all types.
+ // Only avilable for the following database engines now:
+ // MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)
+ // TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY
+ // PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+ enum Type {
+ TYPE_UNSPECIFIED = 0;
+ RANGE = 1;
+ RANGE_COLUMNS = 2;
+ LIST = 3;
+ LIST_COLUMNS = 4;
+ HASH = 5;
+ LINEAR_HASH = 6;
+ KEY = 7;
+ LINEAR_KEY = 8;
+ }
+
+ // The type of a table partition.
+ Type type = 2;
+
+ // The expression is the expression of a table partition.
+ // For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.
+ // For MySQL, the expression is the `expr` or `column_list` of the following syntax.
+ // PARTITION BY
+ // { [LINEAR] HASH(expr)
+ // | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ // | RANGE{(expr) | COLUMNS(column_list)}
+ // | LIST{(expr) | COLUMNS(column_list)} }.
+ string expression = 3;
+
+ // The value is the value of a table partition.
+ // For MySQL, the value is for RANGE and LIST partition types,
+ // - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+ // - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values.
+ // - For others, it's an empty string.
+ string value = 4;
+
+ // The use_default is whether the users use the default partition, it stores the different value for different database engines.
+ // For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}.
+ string use_default = 5;
+
+ // The subpartitions is the list of subpartitions in a table partition.
+ repeated BranchTablePartitionMetadata subpartitions = 6;
+}
+
+// BranchColumnMetadata is the metadata for columns used in branch.
+message BranchColumnMetadata {
+ // The name is the name of a column.
+ string name = 1;
+
+ // The position is the position in columns.
+ int32 position = 2;
+
+ // The default_value is the default value of a column.
+ oneof default_value {
+ // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
+ google.protobuf.StringValue default = 3;
+ bool default_null = 4;
+ string default_expression = 5;
+ }
+
+ // The on_update is the on update action of a column.
+ // For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value.
+ string on_update = 13;
+
+ // The nullable is the nullable of a column.
+ bool nullable = 6;
+
+ // The type is the type of a column.
+ string type = 7;
+
+ // The character_set is the character_set of a column.
+ string character_set = 8;
+
+ // The collation is the collation of a column.
+ string collation = 9;
+
+ // The comment is the comment of a column.
+ // classification and user_comment is parsed from the comment.
+ string comment = 10;
+
+ // The classification is the classification of a table parsed from the comment.
+ string classification = 11;
+
+ // The user_comment is the user comment of a table parsed from the comment.
+ string user_comment = 12;
+}
+
+// BranchViewMetadata is the metadata for views used in branch.
+message BranchViewMetadata {
+ // The name is the name of a view.
+ string name = 1;
+
+ // The definition is the definition of a view.
+ string definition = 2;
+
+ // The comment is the comment of a view.
+ string comment = 3;
+
+ // The dependent_columns is the list of dependent columns of a view.
+ repeated BranchDependentColumn dependent_columns = 4;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// BranchDependentColumn is the metadata for dependent columns used in branch.
+message BranchDependentColumn {
+ // The schema is the schema of a reference column.
+ string schema = 1;
+
+ // The table is the table of a reference column.
+ string table = 2;
+
+ // The column is the name of a reference column.
+ string column = 3;
+}
+
+// BranchMaterializedViewMetadata is the metadata for materialized views used in branch.
+message BranchMaterializedViewMetadata {
+ // The name is the name of a view.
+ string name = 1;
+
+ // The definition is the definition of a view.
+ string definition = 2;
+
+ // The comment is the comment of a view.
+ string comment = 3;
+
+ // The dependent_columns is the list of dependent columns of a view.
+ repeated BranchDependentColumn dependent_columns = 4;
+}
+
+// BranchFunctionMetadata is the metadata for functions used in branch.
+message BranchFunctionMetadata {
+ // The name is the name of a function.
+ string name = 1;
+
+ // The definition is the definition of a function.
+ string definition = 2;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// BranchProcedureMetadata is the metadata for procedures used in branch.
+message BranchProcedureMetadata {
+ // The name is the name of a procedure.
+ string name = 1;
+
+ // The definition is the definition of a procedure.
+ string definition = 2;
+
+ // The last updater of the object.
+ // Format: users/{email}
+ string updater = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The timestamp when the object was last updated.
+ google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// BranchIndexMetadata is the metadata for indexes used in branch.
+message BranchIndexMetadata {
+ // The name is the name of an index.
+ string name = 1;
+
+ // The expressions are the ordered columns or expressions of an index.
+ // This could refer to a column or an expression.
+ repeated string expressions = 2;
+
+ // The key_lengths are the ordered key lengths of an index.
+ // If the key length is not specified, it's -1.
+ repeated int64 key_length = 9;
+
+ // The type is the type of an index.
+ string type = 3;
+
+ // The unique is whether the index is unique.
+ bool unique = 4;
+
+ // The primary is whether the index is a primary key index.
+ bool primary = 5;
+
+ // The visible is whether the index is visible.
+ bool visible = 6;
+
+ // The comment is the comment of an index.
+ string comment = 7;
+
+ // The definition of an index.
+ string definition = 8;
+}
+
+// BranchExtensionMetadata is the metadata for extensions used in branch.
+message BranchExtensionMetadata {
+ // The name is the name of an extension.
+ string name = 1;
+
+ // The schema is the extension that is installed to. But the extension usage is not limited to the schema.
+ string schema = 2;
+
+ // The version is the version of an extension.
+ string version = 3;
+
+ // The description is the description of an extension.
+ string description = 4;
+}
+
+// BranchForeignKeyMetadata is the metadata for foreign keys used in branch.
+message BranchForeignKeyMetadata {
+ // The name is the name of a foreign key.
+ string name = 1;
+
+ // The columns are the ordered referencing columns of a foreign key.
+ repeated string columns = 2;
+
+ // The referenced_schema is the referenced schema name of a foreign key.
+ // It is an empty string for databases without such concept such as MySQL.
+ string referenced_schema = 3;
+
+ // The referenced_table is the referenced table name of a foreign key.
+ string referenced_table = 4;
+
+ // The referenced_columns are the ordered referenced columns of a foreign key.
+ repeated string referenced_columns = 5;
+
+ // The on_delete is the on delete action of a foreign key.
+ string on_delete = 6;
+
+ // The on_update is the on update action of a foreign key.
+ string on_update = 7;
+
+ // The match_type is the match type of a foreign key.
+ // The match_type is the PostgreSQL specific field.
+ // It's empty string for other databases.
+ string match_type = 8;
+}