diff --git a/components/content-service-api/go/initializer.pb.go b/components/content-service-api/go/initializer.pb.go index 7c139b0be709da..b02cea9a40a284 100644 --- a/components/content-service-api/go/initializer.pb.go +++ b/components/content-service-api/go/initializer.pb.go @@ -447,6 +447,8 @@ type GitInitializer struct { CheckoutLocation string `protobuf:"bytes,5,opt,name=checkout_location,json=checkoutLocation,proto3" json:"checkout_location,omitempty"` // config specifies the Git configuration for this workspace Config *GitConfig `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"` + // full_clone determines if the entire repository should be cloned, instead of with `--depth=1` + FullClone bool `protobuf:"varint,7,opt,name=full_clone,json=fullClone,proto3" json:"full_clone,omitempty"` } func (x *GitInitializer) Reset() { @@ -523,6 +525,13 @@ func (x *GitInitializer) GetConfig() *GitConfig { return nil } +func (x *GitInitializer) GetFullClone() bool { + if x != nil { + return x.FullClone + } + return false +} + type GitConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1016,7 +1025,7 @@ var file_initializer_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x22, 0x12, 0x0a, 0x10, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x49, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x22, 0xa2, 0x02, 0x0a, 0x0e, 0x47, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x22, 0xc1, 0x02, 0x0a, 0x0e, 0x47, 0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x72, 0x69, 0x12, 0x2e, 0x0a, 0x13, @@ -1034,86 +1043,88 @@ var file_initializer_proto_rawDesc = []byte{ 0x6b, 0x6f, 0x75, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, - 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, - 0xc2, 0x02, 0x0a, 0x09, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, - 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x45, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, - 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x55, - 0x73, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x75, 0x74, 0x68, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, - 0x5f, 0x6f, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, - 0x4f, 0x74, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0x63, 0x0a, 0x13, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x66, 0x72, 0x6f, 0x6d, 0x5f, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x66, 0x72, 0x6f, 0x6d, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x88, 0x01, 0x0a, 0x13, 0x50, 0x72, - 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, - 0x72, 0x12, 0x3f, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, - 0x6c, 0x64, 0x12, 0x30, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x47, 0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, - 0x03, 0x67, 0x69, 0x74, 0x22, 0x76, 0x0a, 0x15, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x2b, 0x0a, - 0x11, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, - 0x75, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x66, 0x72, - 0x6f, 0x6d, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x66, 0x72, 0x6f, 0x6d, 0x56, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0xe7, 0x02, 0x0a, - 0x09, 0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, - 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, - 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, - 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0e, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, - 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, - 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, - 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, - 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, - 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x2a, 0x5a, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4d, - 0x4f, 0x54, 0x45, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, - 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x11, 0x0a, - 0x0d, 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x02, - 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, - 0x10, 0x03, 0x2a, 0x40, 0x0a, 0x0d, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x00, - 0x12, 0x0e, 0x0a, 0x0a, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x01, - 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x4f, - 0x54, 0x53, 0x10, 0x02, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x1d, 0x0a, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x22, 0xc2, + 0x02, 0x0a, 0x09, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x0d, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, + 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x55, 0x73, + 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x75, 0x74, 0x68, 0x50, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x5f, + 0x6f, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x4f, + 0x74, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x63, 0x0a, 0x13, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x76, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x66, 0x72, 0x6f, 0x6d, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x88, 0x01, 0x0a, 0x13, 0x50, 0x72, 0x65, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, + 0x12, 0x3f, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x12, 0x30, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x47, 0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x03, + 0x67, 0x69, 0x74, 0x22, 0x76, 0x0a, 0x15, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x11, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, + 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x66, 0x72, 0x6f, + 0x6d, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x66, 0x72, 0x6f, 0x6d, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0xe7, 0x02, 0x0a, 0x09, + 0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, + 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0e, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, + 0x12, 0x32, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, + 0x69, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, + 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, + 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, + 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, + 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x2a, 0x5a, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x54, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4d, 0x4f, + 0x54, 0x45, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x4d, + 0x4f, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, + 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x02, 0x12, + 0x10, 0x0a, 0x0c, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, + 0x03, 0x2a, 0x40, 0x0a, 0x0d, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x00, 0x12, + 0x0e, 0x0a, 0x0a, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x01, 0x12, + 0x12, 0x0a, 0x0e, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x4f, 0x54, + 0x53, 0x10, 0x02, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/content-service-api/initializer.proto b/components/content-service-api/initializer.proto index 12341bab6295bc..3d13aa108d93fc 100644 --- a/components/content-service-api/initializer.proto +++ b/components/content-service-api/initializer.proto @@ -61,6 +61,9 @@ message GitInitializer { // config specifies the Git configuration for this workspace GitConfig config = 6; + + // full_clone determines if the entire repository should be cloned, instead of with `--depth=1` + bool full_clone = 7; } // CloneTargetMode is the target state in which we want to leave a GitWorkspace diff --git a/components/content-service-api/typescript/src/initializer_pb.d.ts b/components/content-service-api/typescript/src/initializer_pb.d.ts index a07ce8a6d41192..6722abac29b2eb 100644 --- a/components/content-service-api/typescript/src/initializer_pb.d.ts +++ b/components/content-service-api/typescript/src/initializer_pb.d.ts @@ -193,6 +193,8 @@ export class GitInitializer extends jspb.Message { clearConfig(): void; getConfig(): GitConfig | undefined; setConfig(value?: GitConfig): GitInitializer; + getFullClone(): boolean; + setFullClone(value: boolean): GitInitializer; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GitInitializer.AsObject; @@ -212,6 +214,7 @@ export namespace GitInitializer { cloneTaget: string, checkoutLocation: string, config?: GitConfig.AsObject, + fullClone: boolean, } } diff --git a/components/content-service-api/typescript/src/initializer_pb.js b/components/content-service-api/typescript/src/initializer_pb.js index c4ec74a705c3d5..a5e415ce339dc8 100644 --- a/components/content-service-api/typescript/src/initializer_pb.js +++ b/components/content-service-api/typescript/src/initializer_pb.js @@ -1432,7 +1432,8 @@ proto.contentservice.GitInitializer.toObject = function(includeInstance, msg) { targetMode: jspb.Message.getFieldWithDefault(msg, 3, 0), cloneTaget: jspb.Message.getFieldWithDefault(msg, 4, ""), checkoutLocation: jspb.Message.getFieldWithDefault(msg, 5, ""), - config: (f = msg.getConfig()) && proto.contentservice.GitConfig.toObject(includeInstance, f) + config: (f = msg.getConfig()) && proto.contentservice.GitConfig.toObject(includeInstance, f), + fullClone: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) }; if (includeInstance) { @@ -1494,6 +1495,10 @@ proto.contentservice.GitInitializer.deserializeBinaryFromReader = function(msg, reader.readMessage(value,proto.contentservice.GitConfig.deserializeBinaryFromReader); msg.setConfig(value); break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFullClone(value); + break; default: reader.skipField(); break; @@ -1566,6 +1571,13 @@ proto.contentservice.GitInitializer.serializeBinaryToWriter = function(message, proto.contentservice.GitConfig.serializeBinaryToWriter ); } + f = message.getFullClone(); + if (f) { + writer.writeBool( + 7, + f + ); + } }; @@ -1696,6 +1708,24 @@ proto.contentservice.GitInitializer.prototype.hasConfig = function() { }; +/** + * optional bool full_clone = 7; + * @return {boolean} + */ +proto.contentservice.GitInitializer.prototype.getFullClone = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.contentservice.GitInitializer} returns this + */ +proto.contentservice.GitInitializer.prototype.setFullClone = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); +}; + + diff --git a/components/content-service/pkg/git/git.go b/components/content-service/pkg/git/git.go index 3a74d5a5778155..872269d11766f8 100644 --- a/components/content-service/pkg/git/git.go +++ b/components/content-service/pkg/git/git.go @@ -13,6 +13,7 @@ import ( "os/exec" "path/filepath" "strings" + "time" "github.com/opentracing/opentracing-go" "golang.org/x/xerrors" @@ -95,6 +96,9 @@ type Client struct { // if true will run git command as gitpod user (should be executed as root that has access to sudo in this case) RunAsGitpodUser bool + + // FullClone indicates whether we should do a full checkout or a shallow clone + FullClone bool } // Status describes the status of a Git repo/working copy akin to "git status" @@ -338,8 +342,18 @@ func (c *Client) Clone(ctx context.Context) (err error) { log.WithError(err).Error("cannot create clone location") } + now := time.Now() + + defer func() { + log.WithField("duration", time.Since(now).String()).WithField("FullClone", c.FullClone).Info("clone repository took") + }() + args := []string{"--depth=1", "--shallow-submodules", c.RemoteURI} + if c.FullClone { + args = []string{c.RemoteURI} + } + for key, value := range c.Config { args = append(args, "--config") args = append(args, strings.TrimSpace(key)+"="+strings.TrimSpace(value)) diff --git a/components/content-service/pkg/initializer/git.go b/components/content-service/pkg/initializer/git.go index 2fdb4742a67f96..27b894a7419f7a 100644 --- a/components/content-service/pkg/initializer/git.go +++ b/components/content-service/pkg/initializer/git.go @@ -10,6 +10,7 @@ import ( "fmt" "os" "os/exec" + "strconv" "strings" "time" @@ -199,6 +200,20 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping) return } +func (ws *GitInitializer) isShallowRepository(ctx context.Context) bool { + out, err := ws.GitWithOutput(ctx, nil, "rev-parse", "--is-shallow-repository") + if err != nil { + log.WithError(err).Error("unexpected error checking if git repository is shallow") + return true + } + isShallow, err := strconv.ParseBool(strings.TrimSpace(string(out))) + if err != nil { + log.WithError(err).WithField("input", string(out)).Error("unexpected error parsing bool") + return true + } + return isShallow +} + // realizeCloneTarget ensures the clone target is checked out func (ws *GitInitializer) realizeCloneTarget(ctx context.Context) (err error) { //nolint:ineffassign @@ -235,8 +250,13 @@ func (ws *GitInitializer) realizeCloneTarget(ctx context.Context) (err error) { // // We don't recurse submodules because callers realizeCloneTarget() are expected to update submodules explicitly, // and deal with any error appropriately (i.e. emit a warning rather than fail). - if err := ws.Git(ctx, "fetch", "--depth=1", "origin", "--recurse-submodules=no", ws.CloneTarget); err != nil { - log.WithError(err).WithField("remoteURI", ws.RemoteURI).WithField("branch", ws.CloneTarget).Error("Cannot fetch remote branch") + fetchArgs := []string{"--depth=1", "origin", "--recurse-submodules=no", ws.CloneTarget} + isShallow := ws.isShallowRepository(ctx) + if !isShallow { + fetchArgs = []string{"origin", "--recurse-submodules=no", ws.CloneTarget} + } + if err := ws.Git(ctx, "fetch", fetchArgs...); err != nil { + log.WithError(err).WithField("isShallow", isShallow).WithField("remoteURI", ws.RemoteURI).WithField("branch", ws.CloneTarget).Error("Cannot fetch remote branch") return err } diff --git a/components/content-service/pkg/initializer/initializer.go b/components/content-service/pkg/initializer/initializer.go index d75cb67de1aab4..d3ed8f495efe55 100644 --- a/components/content-service/pkg/initializer/initializer.go +++ b/components/content-service/pkg/initializer/initializer.go @@ -304,6 +304,7 @@ func newGitInitializer(ctx context.Context, loc string, req *csapi.GitInitialize AuthMethod: authMethod, AuthProvider: authProvider, RunAsGitpodUser: forceGitpodUser, + FullClone: req.FullClone, }, TargetMode: targetMode, CloneTarget: req.CloneTaget, diff --git a/components/dashboard/src/data/featureflag-query.ts b/components/dashboard/src/data/featureflag-query.ts index 493fe9d12dc9e4..f9529ebf68a81b 100644 --- a/components/dashboard/src/data/featureflag-query.ts +++ b/components/dashboard/src/data/featureflag-query.ts @@ -24,6 +24,7 @@ const featureFlags = { dataops: false, showBrowserExtensionPromotion: false, enable_experimental_jbtb: false, + enabled_configuration_prebuild_full_clone: false, }; type FeatureFlags = typeof featureFlags; diff --git a/components/dashboard/src/repositories/detail/prebuilds/PrebuildSettingsForm.tsx b/components/dashboard/src/repositories/detail/prebuilds/PrebuildSettingsForm.tsx index 2fbe2dce275769..b958f245e67c2b 100644 --- a/components/dashboard/src/repositories/detail/prebuilds/PrebuildSettingsForm.tsx +++ b/components/dashboard/src/repositories/detail/prebuilds/PrebuildSettingsForm.tsx @@ -26,6 +26,8 @@ import { useUserLoader } from "../../../hooks/use-user-loader"; import { useUpdateCurrentUserMutation } from "../../../data/current-user/update-mutation"; import { trackEvent } from "../../../Analytics"; import dayjs from "dayjs"; +import { SwitchInputField } from "@podkit/switch/Switch"; +import { useFeatureFlag } from "../../../data/featureflag-query"; const DEFAULT_PREBUILD_COMMIT_INTERVAL = 20; @@ -40,6 +42,7 @@ export const PrebuildSettingsForm: FC = ({ configuration }) => { const { user } = useUserLoader(); const { mutate: updateUser } = useUpdateCurrentUserMutation(); + const isEnabledPrebuildFullClone = useFeatureFlag("enabled_configuration_prebuild_full_clone"); const updateConfiguration = useConfigurationMutation(); @@ -55,6 +58,9 @@ export const PrebuildSettingsForm: FC = ({ configuration }) => { const [workspaceClass, setWorkspaceClass] = useState( configuration.prebuildSettings?.workspaceClass || DEFAULT_WS_CLASS, ); + const [fullClone, setFullClone] = useState( + configuration.prebuildSettings?.cloneSettings?.fullClone ?? false, + ); const [isTriggerNotificationOpen, setIsTriggerNotificationOpen] = useState(true); @@ -72,6 +78,9 @@ export const PrebuildSettingsForm: FC = ({ configuration }) => { branchStrategy, branchMatchingPattern, workspaceClass, + cloneSettings: { + fullClone, + }, }, }; @@ -90,6 +99,7 @@ export const PrebuildSettingsForm: FC = ({ configuration }) => { toast, updateConfiguration, workspaceClass, + fullClone, ], ); @@ -200,6 +210,20 @@ export const PrebuildSettingsForm: FC = ({ configuration }) => { /> )} + {isEnabledPrebuildFullClone && ( + + + + )} + Machine type Choose the workspace machine type for your prebuilds. diff --git a/components/gitpod-protocol/src/teams-projects-protocol.ts b/components/gitpod-protocol/src/teams-projects-protocol.ts index 24873c2c64d7c9..bb0e755983c237 100644 --- a/components/gitpod-protocol/src/teams-projects-protocol.ts +++ b/components/gitpod-protocol/src/teams-projects-protocol.ts @@ -32,6 +32,9 @@ export interface ProjectSettings { export namespace PrebuildSettings { export type BranchStrategy = "default-branch" | "all-branches" | "matched-branches"; export type TriggerStrategy = "activity-based" | "webhook-based"; + export interface CloneSettings { + fullClone?: boolean; + } } export interface PrebuildSettings { @@ -61,6 +64,8 @@ export interface PrebuildSettings { * The activation strategy for prebuilds. Defaults to "webhook-based" */ triggerStrategy?: PrebuildSettings.TriggerStrategy; + + cloneSettings?: PrebuildSettings.CloneSettings; } export interface Project { diff --git a/components/gitpod-protocol/src/wsready.ts b/components/gitpod-protocol/src/wsready.ts index 8434b781320c71..60e36a9713b47b 100644 --- a/components/gitpod-protocol/src/wsready.ts +++ b/components/gitpod-protocol/src/wsready.ts @@ -4,19 +4,19 @@ * See License.AGPL.txt in the project root for license information. */ -// generated using github.com/32leaves/bel on 2023-08-17 09:50:49.633992319 +0000 UTC m=+0.007372079 +// generated using github.com/32leaves/bel on 2024-09-10 10:27:59.702679509 +0000 UTC m=+0.029900569 // DO NOT MODIFY -export enum WorkspaceInitSource { - WorkspaceInitFromBackup = "from-backup", - WorkspaceInitFromPrebuild = "from-prebuild", - WorkspaceInitFromOther = "from-other", -} export interface WorkspaceReadyMessage { source: WorkspaceInitSource; metrics: InitializerMetric[]; } +export enum WorkspaceInitSource { + WorkspaceInitFromBackup = "from-backup", + WorkspaceInitFromPrebuild = "from-prebuild", + WorkspaceInitFromOther = "from-other", +} export interface InitializerMetric { type: string; duration: number; diff --git a/components/public-api/gitpod/v1/configuration.proto b/components/public-api/gitpod/v1/configuration.proto index 25a8916df2cd62..f1b05dca293503 100644 --- a/components/public-api/gitpod/v1/configuration.proto +++ b/components/public-api/gitpod/v1/configuration.proto @@ -33,6 +33,12 @@ message PrebuildSettings { int32 prebuild_interval = 4; string workspace_class = 5; PrebuildTriggerStrategy trigger_strategy = 6; + PrebuildCloneSettings clone_settings = 7; +} + +message PrebuildCloneSettings { + // full_clone determines if the entire repository should be cloned, instead of with `--depth=1` + bool full_clone = 1; } enum BranchMatchingStrategy { @@ -106,6 +112,7 @@ message UpdateConfigurationRequest { optional int32 prebuild_interval = 4; optional string workspace_class = 5; optional PrebuildTriggerStrategy trigger_strategy = 6; + optional PrebuildCloneSettings clone_settings = 7; } message WorkspaceSettings { optional string workspace_class = 1; diff --git a/components/public-api/go/v1/configuration.pb.go b/components/public-api/go/v1/configuration.pb.go index 421eb02f476a95..f493a960cc4259 100644 --- a/components/public-api/go/v1/configuration.pb.go +++ b/components/public-api/go/v1/configuration.pb.go @@ -231,6 +231,7 @@ type PrebuildSettings struct { PrebuildInterval int32 `protobuf:"varint,4,opt,name=prebuild_interval,json=prebuildInterval,proto3" json:"prebuild_interval,omitempty"` WorkspaceClass string `protobuf:"bytes,5,opt,name=workspace_class,json=workspaceClass,proto3" json:"workspace_class,omitempty"` TriggerStrategy PrebuildTriggerStrategy `protobuf:"varint,6,opt,name=trigger_strategy,json=triggerStrategy,proto3,enum=gitpod.v1.PrebuildTriggerStrategy" json:"trigger_strategy,omitempty"` + CloneSettings *PrebuildCloneSettings `protobuf:"bytes,7,opt,name=clone_settings,json=cloneSettings,proto3" json:"clone_settings,omitempty"` } func (x *PrebuildSettings) Reset() { @@ -307,6 +308,61 @@ func (x *PrebuildSettings) GetTriggerStrategy() PrebuildTriggerStrategy { return PrebuildTriggerStrategy_PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED } +func (x *PrebuildSettings) GetCloneSettings() *PrebuildCloneSettings { + if x != nil { + return x.CloneSettings + } + return nil +} + +type PrebuildCloneSettings struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // full_clone determines if the entire repository should be cloned, instead of with `--depth=1` + FullClone bool `protobuf:"varint,1,opt,name=full_clone,json=fullClone,proto3" json:"full_clone,omitempty"` +} + +func (x *PrebuildCloneSettings) Reset() { + *x = PrebuildCloneSettings{} + if protoimpl.UnsafeEnabled { + mi := &file_gitpod_v1_configuration_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PrebuildCloneSettings) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PrebuildCloneSettings) ProtoMessage() {} + +func (x *PrebuildCloneSettings) ProtoReflect() protoreflect.Message { + mi := &file_gitpod_v1_configuration_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 PrebuildCloneSettings.ProtoReflect.Descriptor instead. +func (*PrebuildCloneSettings) Descriptor() ([]byte, []int) { + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{2} +} + +func (x *PrebuildCloneSettings) GetFullClone() bool { + if x != nil { + return x.FullClone + } + return false +} + type WorkspaceSettings struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -320,7 +376,7 @@ type WorkspaceSettings struct { func (x *WorkspaceSettings) Reset() { *x = WorkspaceSettings{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[2] + mi := &file_gitpod_v1_configuration_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -333,7 +389,7 @@ func (x *WorkspaceSettings) String() string { func (*WorkspaceSettings) ProtoMessage() {} func (x *WorkspaceSettings) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[2] + mi := &file_gitpod_v1_configuration_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -346,7 +402,7 @@ func (x *WorkspaceSettings) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceSettings.ProtoReflect.Descriptor instead. func (*WorkspaceSettings) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{2} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{3} } func (x *WorkspaceSettings) GetWorkspaceClass() string { @@ -383,7 +439,7 @@ type CreateConfigurationRequest struct { func (x *CreateConfigurationRequest) Reset() { *x = CreateConfigurationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[3] + mi := &file_gitpod_v1_configuration_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -396,7 +452,7 @@ func (x *CreateConfigurationRequest) String() string { func (*CreateConfigurationRequest) ProtoMessage() {} func (x *CreateConfigurationRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[3] + mi := &file_gitpod_v1_configuration_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -409,7 +465,7 @@ func (x *CreateConfigurationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateConfigurationRequest.ProtoReflect.Descriptor instead. func (*CreateConfigurationRequest) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{3} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{4} } func (x *CreateConfigurationRequest) GetOrganizationId() string { @@ -444,7 +500,7 @@ type CreateConfigurationResponse struct { func (x *CreateConfigurationResponse) Reset() { *x = CreateConfigurationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[4] + mi := &file_gitpod_v1_configuration_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -457,7 +513,7 @@ func (x *CreateConfigurationResponse) String() string { func (*CreateConfigurationResponse) ProtoMessage() {} func (x *CreateConfigurationResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[4] + mi := &file_gitpod_v1_configuration_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -470,7 +526,7 @@ func (x *CreateConfigurationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateConfigurationResponse.ProtoReflect.Descriptor instead. func (*CreateConfigurationResponse) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{4} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{5} } func (x *CreateConfigurationResponse) GetConfiguration() *Configuration { @@ -491,7 +547,7 @@ type GetConfigurationRequest struct { func (x *GetConfigurationRequest) Reset() { *x = GetConfigurationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[5] + mi := &file_gitpod_v1_configuration_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -504,7 +560,7 @@ func (x *GetConfigurationRequest) String() string { func (*GetConfigurationRequest) ProtoMessage() {} func (x *GetConfigurationRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[5] + mi := &file_gitpod_v1_configuration_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -517,7 +573,7 @@ func (x *GetConfigurationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConfigurationRequest.ProtoReflect.Descriptor instead. func (*GetConfigurationRequest) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{5} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{6} } func (x *GetConfigurationRequest) GetConfigurationId() string { @@ -538,7 +594,7 @@ type GetConfigurationResponse struct { func (x *GetConfigurationResponse) Reset() { *x = GetConfigurationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[6] + mi := &file_gitpod_v1_configuration_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -551,7 +607,7 @@ func (x *GetConfigurationResponse) String() string { func (*GetConfigurationResponse) ProtoMessage() {} func (x *GetConfigurationResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[6] + mi := &file_gitpod_v1_configuration_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -564,7 +620,7 @@ func (x *GetConfigurationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConfigurationResponse.ProtoReflect.Descriptor instead. func (*GetConfigurationResponse) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{6} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{7} } func (x *GetConfigurationResponse) GetConfiguration() *Configuration { @@ -591,7 +647,7 @@ type ListConfigurationsRequest struct { func (x *ListConfigurationsRequest) Reset() { *x = ListConfigurationsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[7] + mi := &file_gitpod_v1_configuration_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -604,7 +660,7 @@ func (x *ListConfigurationsRequest) String() string { func (*ListConfigurationsRequest) ProtoMessage() {} func (x *ListConfigurationsRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[7] + mi := &file_gitpod_v1_configuration_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -617,7 +673,7 @@ func (x *ListConfigurationsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListConfigurationsRequest.ProtoReflect.Descriptor instead. func (*ListConfigurationsRequest) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{7} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{8} } func (x *ListConfigurationsRequest) GetOrganizationId() string { @@ -667,7 +723,7 @@ type ListConfigurationsResponse struct { func (x *ListConfigurationsResponse) Reset() { *x = ListConfigurationsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[8] + mi := &file_gitpod_v1_configuration_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -680,7 +736,7 @@ func (x *ListConfigurationsResponse) String() string { func (*ListConfigurationsResponse) ProtoMessage() {} func (x *ListConfigurationsResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[8] + mi := &file_gitpod_v1_configuration_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -693,7 +749,7 @@ func (x *ListConfigurationsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListConfigurationsResponse.ProtoReflect.Descriptor instead. func (*ListConfigurationsResponse) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{8} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{9} } func (x *ListConfigurationsResponse) GetConfigurations() []*Configuration { @@ -724,7 +780,7 @@ type UpdateConfigurationRequest struct { func (x *UpdateConfigurationRequest) Reset() { *x = UpdateConfigurationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[9] + mi := &file_gitpod_v1_configuration_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -737,7 +793,7 @@ func (x *UpdateConfigurationRequest) String() string { func (*UpdateConfigurationRequest) ProtoMessage() {} func (x *UpdateConfigurationRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[9] + mi := &file_gitpod_v1_configuration_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -750,7 +806,7 @@ func (x *UpdateConfigurationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateConfigurationRequest.ProtoReflect.Descriptor instead. func (*UpdateConfigurationRequest) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{9} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{10} } func (x *UpdateConfigurationRequest) GetConfigurationId() string { @@ -792,7 +848,7 @@ type UpdateConfigurationResponse struct { func (x *UpdateConfigurationResponse) Reset() { *x = UpdateConfigurationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[10] + mi := &file_gitpod_v1_configuration_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -805,7 +861,7 @@ func (x *UpdateConfigurationResponse) String() string { func (*UpdateConfigurationResponse) ProtoMessage() {} func (x *UpdateConfigurationResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[10] + mi := &file_gitpod_v1_configuration_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -818,7 +874,7 @@ func (x *UpdateConfigurationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateConfigurationResponse.ProtoReflect.Descriptor instead. func (*UpdateConfigurationResponse) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{10} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{11} } func (x *UpdateConfigurationResponse) GetConfiguration() *Configuration { @@ -839,7 +895,7 @@ type DeleteConfigurationRequest struct { func (x *DeleteConfigurationRequest) Reset() { *x = DeleteConfigurationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[11] + mi := &file_gitpod_v1_configuration_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -852,7 +908,7 @@ func (x *DeleteConfigurationRequest) String() string { func (*DeleteConfigurationRequest) ProtoMessage() {} func (x *DeleteConfigurationRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[11] + mi := &file_gitpod_v1_configuration_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -865,7 +921,7 @@ func (x *DeleteConfigurationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteConfigurationRequest.ProtoReflect.Descriptor instead. func (*DeleteConfigurationRequest) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{11} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{12} } func (x *DeleteConfigurationRequest) GetConfigurationId() string { @@ -884,7 +940,7 @@ type DeleteConfigurationResponse struct { func (x *DeleteConfigurationResponse) Reset() { *x = DeleteConfigurationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[12] + mi := &file_gitpod_v1_configuration_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -897,7 +953,7 @@ func (x *DeleteConfigurationResponse) String() string { func (*DeleteConfigurationResponse) ProtoMessage() {} func (x *DeleteConfigurationResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[12] + mi := &file_gitpod_v1_configuration_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -910,7 +966,7 @@ func (x *DeleteConfigurationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteConfigurationResponse.ProtoReflect.Descriptor instead. func (*DeleteConfigurationResponse) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{12} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{13} } type UpdateConfigurationRequest_PrebuildSettings struct { @@ -924,12 +980,13 @@ type UpdateConfigurationRequest_PrebuildSettings struct { PrebuildInterval *int32 `protobuf:"varint,4,opt,name=prebuild_interval,json=prebuildInterval,proto3,oneof" json:"prebuild_interval,omitempty"` WorkspaceClass *string `protobuf:"bytes,5,opt,name=workspace_class,json=workspaceClass,proto3,oneof" json:"workspace_class,omitempty"` TriggerStrategy *PrebuildTriggerStrategy `protobuf:"varint,6,opt,name=trigger_strategy,json=triggerStrategy,proto3,enum=gitpod.v1.PrebuildTriggerStrategy,oneof" json:"trigger_strategy,omitempty"` + CloneSettings *PrebuildCloneSettings `protobuf:"bytes,7,opt,name=clone_settings,json=cloneSettings,proto3,oneof" json:"clone_settings,omitempty"` } func (x *UpdateConfigurationRequest_PrebuildSettings) Reset() { *x = UpdateConfigurationRequest_PrebuildSettings{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[13] + mi := &file_gitpod_v1_configuration_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -942,7 +999,7 @@ func (x *UpdateConfigurationRequest_PrebuildSettings) String() string { func (*UpdateConfigurationRequest_PrebuildSettings) ProtoMessage() {} func (x *UpdateConfigurationRequest_PrebuildSettings) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[13] + mi := &file_gitpod_v1_configuration_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -955,7 +1012,7 @@ func (x *UpdateConfigurationRequest_PrebuildSettings) ProtoReflect() protoreflec // Deprecated: Use UpdateConfigurationRequest_PrebuildSettings.ProtoReflect.Descriptor instead. func (*UpdateConfigurationRequest_PrebuildSettings) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{9, 0} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{10, 0} } func (x *UpdateConfigurationRequest_PrebuildSettings) GetEnabled() bool { @@ -1000,6 +1057,13 @@ func (x *UpdateConfigurationRequest_PrebuildSettings) GetTriggerStrategy() Prebu return PrebuildTriggerStrategy_PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED } +func (x *UpdateConfigurationRequest_PrebuildSettings) GetCloneSettings() *PrebuildCloneSettings { + if x != nil { + return x.CloneSettings + } + return nil +} + type UpdateConfigurationRequest_WorkspaceSettings struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1023,7 +1087,7 @@ type UpdateConfigurationRequest_WorkspaceSettings struct { func (x *UpdateConfigurationRequest_WorkspaceSettings) Reset() { *x = UpdateConfigurationRequest_WorkspaceSettings{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_v1_configuration_proto_msgTypes[14] + mi := &file_gitpod_v1_configuration_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1036,7 +1100,7 @@ func (x *UpdateConfigurationRequest_WorkspaceSettings) String() string { func (*UpdateConfigurationRequest_WorkspaceSettings) ProtoMessage() {} func (x *UpdateConfigurationRequest_WorkspaceSettings) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_v1_configuration_proto_msgTypes[14] + mi := &file_gitpod_v1_configuration_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1049,7 +1113,7 @@ func (x *UpdateConfigurationRequest_WorkspaceSettings) ProtoReflect() protorefle // Deprecated: Use UpdateConfigurationRequest_WorkspaceSettings.ProtoReflect.Descriptor instead. func (*UpdateConfigurationRequest_WorkspaceSettings) Descriptor() ([]byte, []int) { - return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{9, 1} + return file_gitpod_v1_configuration_proto_rawDescGZIP(), []int{10, 1} } func (x *UpdateConfigurationRequest_WorkspaceSettings) GetWorkspaceClass() string { @@ -1119,7 +1183,7 @@ var file_gitpod_v1_configuration_proto_rawDesc = []byte{ 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, - 0x69, 0x6e, 0x67, 0x73, 0x22, 0xd5, 0x02, 0x0a, 0x10, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, + 0x69, 0x6e, 0x67, 0x73, 0x22, 0x9e, 0x03, 0x0a, 0x10, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, 0x61, @@ -1140,223 +1204,237 @@ var file_gitpod_v1_configuration_proto_rawDesc = []byte{ 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0f, 0x74, 0x72, 0x69, - 0x67, 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0xb6, 0x01, 0x0a, - 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x72, + 0x67, 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x47, 0x0a, 0x0e, + 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0d, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x36, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1d, + 0x0a, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x22, 0xb6, 0x01, + 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x1c, + 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x1a, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x57, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x36, + 0x0a, 0x17, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x64, 0x69, + 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x15, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x45, 0x64, 0x69, 0x74, 0x6f, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x76, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x5d, + 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, + 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x44, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3e, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x90, 0x02, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, + 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x54, 0x65, 0x72, 0x6d, 0x12, 0x3c, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, 0x30, 0x0a, 0x11, 0x70, 0x72, + 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x10, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, + 0x5f, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x22, 0x9d, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0xfa, 0x0a, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x68, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x36, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x48, 0x01, 0x52, 0x10, 0x70, 0x72, 0x65, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x88, 0x01, 0x01, 0x12, + 0x6b, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x48, 0x02, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x88, 0x01, 0x01, 0x1a, 0xcf, 0x04, 0x0a, + 0x10, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x12, 0x1d, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x88, 0x01, 0x01, + 0x12, 0x3b, 0x0a, 0x17, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x01, 0x52, 0x15, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, + 0x0f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x02, 0x52, 0x0e, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x88, 0x01, 0x01, 0x12, 0x30, + 0x0a, 0x11, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x03, 0x52, 0x10, 0x70, 0x72, 0x65, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x88, 0x01, 0x01, + 0x12, 0x2c, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x0e, 0x77, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x52, + 0x0a, 0x10, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x05, 0x52, 0x0f, + 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x88, + 0x01, 0x01, 0x12, 0x4c, 0x0a, 0x0e, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x69, 0x74, + 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, + 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x48, 0x06, 0x52, 0x0d, + 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x88, 0x01, 0x01, + 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x1a, 0x0a, 0x18, + 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x42, 0x14, 0x0a, 0x12, + 0x5f, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x74, 0x72, 0x69, 0x67, 0x67, + 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x42, 0x11, 0x0a, 0x0f, 0x5f, + 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0xb8, + 0x03, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2c, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x88, + 0x01, 0x01, 0x12, 0x40, 0x0a, 0x1c, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, + 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x1a, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, + 0x63, 0x74, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x23, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x1a, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x36, 0x0a, - 0x17, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x64, 0x69, 0x74, - 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, - 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x76, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, - 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x5d, 0x0a, - 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x44, 0x0a, 0x17, - 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x48, 0x01, 0x52, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, + 0x69, 0x63, 0x74, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x74, + 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x72, 0x65, 0x73, 0x74, 0x72, + 0x69, 0x63, 0x74, 0x65, 0x64, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x12, 0x48, 0x0a, 0x1e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, + 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x1b, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x45, 0x64, 0x69, 0x74, + 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x42, 0x26, + 0x0a, 0x24, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, + 0x63, 0x74, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x21, 0x0a, 0x1f, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x64, 0x69, + 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x77, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, + 0x5d, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x90, - 0x02, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, - 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, - 0x74, 0x65, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x54, 0x65, 0x72, 0x6d, 0x12, 0x3c, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x6f, 0x72, 0x74, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, 0x30, 0x0a, 0x11, 0x70, 0x72, 0x65, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x10, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, - 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, - 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x22, 0x9d, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x40, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x99, 0x0a, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x88, 0x01, 0x01, 0x12, 0x68, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, - 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x36, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x48, 0x01, 0x52, 0x10, 0x70, 0x72, 0x65, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x88, 0x01, 0x01, 0x12, 0x6b, - 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, - 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x73, 0x48, 0x02, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x88, 0x01, 0x01, 0x1a, 0xee, 0x03, 0x0a, 0x10, - 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, - 0x12, 0x1d, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x48, 0x00, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, - 0x3b, 0x0a, 0x17, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, - 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x01, 0x52, 0x15, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, - 0x6e, 0x67, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x0f, - 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, - 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x02, 0x52, 0x0e, 0x62, 0x72, 0x61, 0x6e, - 0x63, 0x68, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, - 0x11, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, - 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x03, 0x52, 0x10, 0x70, 0x72, 0x65, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x88, 0x01, 0x01, 0x12, - 0x2c, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x52, 0x0a, - 0x10, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, - 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x72, 0x69, 0x67, - 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x05, 0x52, 0x0f, 0x74, - 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x88, 0x01, - 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x1a, 0x0a, - 0x18, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, - 0x67, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x62, 0x72, - 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x42, 0x14, 0x0a, - 0x12, 0x5f, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x76, 0x61, 0x6c, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x74, 0x72, 0x69, 0x67, - 0x67, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x1a, 0xb8, 0x03, 0x0a, - 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x12, 0x2c, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x77, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x88, 0x01, 0x01, - 0x12, 0x40, 0x0a, 0x1c, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x77, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x1a, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, - 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x65, 0x73, 0x12, 0x52, 0x0a, 0x23, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, - 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, - 0x01, 0x52, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, - 0x74, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, - 0x63, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, - 0x74, 0x65, 0x64, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x48, - 0x0a, 0x1e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, - 0x74, 0x65, 0x64, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x1b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x77, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x42, 0x26, 0x0a, 0x24, - 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, - 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x65, 0x73, 0x42, 0x21, 0x0a, 0x1f, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x6f, - 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x73, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x5d, 0x0a, - 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x47, 0x0a, 0x1a, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x72, 0x0a, 0x17, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, - 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, - 0x29, 0x0a, 0x25, 0x50, 0x52, 0x45, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x5f, 0x54, 0x52, 0x49, 0x47, - 0x47, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x2c, 0x0a, 0x28, 0x50, 0x52, - 0x45, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x53, - 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, - 0x5f, 0x42, 0x41, 0x53, 0x45, 0x44, 0x10, 0x01, 0x2a, 0xc9, 0x01, 0x0a, 0x16, 0x42, 0x72, 0x61, - 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x61, 0x74, - 0x65, 0x67, 0x79, 0x12, 0x28, 0x0a, 0x24, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x4d, 0x41, - 0x54, 0x43, 0x48, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x2b, 0x0a, - 0x27, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x49, 0x4e, 0x47, - 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, - 0x54, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x29, 0x0a, 0x25, 0x42, 0x52, - 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, - 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, - 0x48, 0x45, 0x53, 0x10, 0x02, 0x12, 0x2d, 0x0a, 0x29, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, + 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x47, + 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x72, 0x0a, 0x17, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, + 0x79, 0x12, 0x29, 0x0a, 0x25, 0x50, 0x52, 0x45, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x5f, 0x54, 0x52, + 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x2c, 0x0a, 0x28, + 0x50, 0x52, 0x45, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, + 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, + 0x54, 0x59, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x44, 0x10, 0x01, 0x2a, 0xc9, 0x01, 0x0a, 0x16, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, + 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x28, 0x0a, 0x24, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, - 0x59, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x45, 0x44, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, - 0x45, 0x53, 0x10, 0x03, 0x32, 0x92, 0x04, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x66, 0x0a, - 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x69, - 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x66, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x2b, 0x0a, 0x27, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x49, + 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x44, 0x45, 0x46, 0x41, + 0x55, 0x4c, 0x54, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x29, 0x0a, 0x25, + 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x49, 0x4e, 0x47, 0x5f, + 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, 0x52, 0x41, + 0x4e, 0x43, 0x48, 0x45, 0x53, 0x10, 0x02, 0x12, 0x2d, 0x0a, 0x29, 0x42, 0x52, 0x41, 0x4e, 0x43, + 0x48, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, + 0x45, 0x47, 0x59, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x45, 0x44, 0x5f, 0x42, 0x52, 0x41, 0x4e, + 0x43, 0x48, 0x45, 0x53, 0x10, 0x03, 0x32, 0x92, 0x04, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x66, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, - 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x23, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x67, + 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x67, 0x69, 0x74, + 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, + 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1372,62 +1450,65 @@ func file_gitpod_v1_configuration_proto_rawDescGZIP() []byte { } var file_gitpod_v1_configuration_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_gitpod_v1_configuration_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_gitpod_v1_configuration_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_gitpod_v1_configuration_proto_goTypes = []interface{}{ (PrebuildTriggerStrategy)(0), // 0: gitpod.v1.PrebuildTriggerStrategy (BranchMatchingStrategy)(0), // 1: gitpod.v1.BranchMatchingStrategy (*Configuration)(nil), // 2: gitpod.v1.Configuration (*PrebuildSettings)(nil), // 3: gitpod.v1.PrebuildSettings - (*WorkspaceSettings)(nil), // 4: gitpod.v1.WorkspaceSettings - (*CreateConfigurationRequest)(nil), // 5: gitpod.v1.CreateConfigurationRequest - (*CreateConfigurationResponse)(nil), // 6: gitpod.v1.CreateConfigurationResponse - (*GetConfigurationRequest)(nil), // 7: gitpod.v1.GetConfigurationRequest - (*GetConfigurationResponse)(nil), // 8: gitpod.v1.GetConfigurationResponse - (*ListConfigurationsRequest)(nil), // 9: gitpod.v1.ListConfigurationsRequest - (*ListConfigurationsResponse)(nil), // 10: gitpod.v1.ListConfigurationsResponse - (*UpdateConfigurationRequest)(nil), // 11: gitpod.v1.UpdateConfigurationRequest - (*UpdateConfigurationResponse)(nil), // 12: gitpod.v1.UpdateConfigurationResponse - (*DeleteConfigurationRequest)(nil), // 13: gitpod.v1.DeleteConfigurationRequest - (*DeleteConfigurationResponse)(nil), // 14: gitpod.v1.DeleteConfigurationResponse - (*UpdateConfigurationRequest_PrebuildSettings)(nil), // 15: gitpod.v1.UpdateConfigurationRequest.PrebuildSettings - (*UpdateConfigurationRequest_WorkspaceSettings)(nil), // 16: gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings - (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp - (*PaginationRequest)(nil), // 18: gitpod.v1.PaginationRequest - (*Sort)(nil), // 19: gitpod.v1.Sort - (*PaginationResponse)(nil), // 20: gitpod.v1.PaginationResponse + (*PrebuildCloneSettings)(nil), // 4: gitpod.v1.PrebuildCloneSettings + (*WorkspaceSettings)(nil), // 5: gitpod.v1.WorkspaceSettings + (*CreateConfigurationRequest)(nil), // 6: gitpod.v1.CreateConfigurationRequest + (*CreateConfigurationResponse)(nil), // 7: gitpod.v1.CreateConfigurationResponse + (*GetConfigurationRequest)(nil), // 8: gitpod.v1.GetConfigurationRequest + (*GetConfigurationResponse)(nil), // 9: gitpod.v1.GetConfigurationResponse + (*ListConfigurationsRequest)(nil), // 10: gitpod.v1.ListConfigurationsRequest + (*ListConfigurationsResponse)(nil), // 11: gitpod.v1.ListConfigurationsResponse + (*UpdateConfigurationRequest)(nil), // 12: gitpod.v1.UpdateConfigurationRequest + (*UpdateConfigurationResponse)(nil), // 13: gitpod.v1.UpdateConfigurationResponse + (*DeleteConfigurationRequest)(nil), // 14: gitpod.v1.DeleteConfigurationRequest + (*DeleteConfigurationResponse)(nil), // 15: gitpod.v1.DeleteConfigurationResponse + (*UpdateConfigurationRequest_PrebuildSettings)(nil), // 16: gitpod.v1.UpdateConfigurationRequest.PrebuildSettings + (*UpdateConfigurationRequest_WorkspaceSettings)(nil), // 17: gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings + (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*PaginationRequest)(nil), // 19: gitpod.v1.PaginationRequest + (*Sort)(nil), // 20: gitpod.v1.Sort + (*PaginationResponse)(nil), // 21: gitpod.v1.PaginationResponse } var file_gitpod_v1_configuration_proto_depIdxs = []int32{ - 17, // 0: gitpod.v1.Configuration.creation_time:type_name -> google.protobuf.Timestamp + 18, // 0: gitpod.v1.Configuration.creation_time:type_name -> google.protobuf.Timestamp 3, // 1: gitpod.v1.Configuration.prebuild_settings:type_name -> gitpod.v1.PrebuildSettings - 4, // 2: gitpod.v1.Configuration.workspace_settings:type_name -> gitpod.v1.WorkspaceSettings + 5, // 2: gitpod.v1.Configuration.workspace_settings:type_name -> gitpod.v1.WorkspaceSettings 1, // 3: gitpod.v1.PrebuildSettings.branch_strategy:type_name -> gitpod.v1.BranchMatchingStrategy 0, // 4: gitpod.v1.PrebuildSettings.trigger_strategy:type_name -> gitpod.v1.PrebuildTriggerStrategy - 2, // 5: gitpod.v1.CreateConfigurationResponse.configuration:type_name -> gitpod.v1.Configuration - 2, // 6: gitpod.v1.GetConfigurationResponse.configuration:type_name -> gitpod.v1.Configuration - 18, // 7: gitpod.v1.ListConfigurationsRequest.pagination:type_name -> gitpod.v1.PaginationRequest - 19, // 8: gitpod.v1.ListConfigurationsRequest.sort:type_name -> gitpod.v1.Sort - 2, // 9: gitpod.v1.ListConfigurationsResponse.configurations:type_name -> gitpod.v1.Configuration - 20, // 10: gitpod.v1.ListConfigurationsResponse.pagination:type_name -> gitpod.v1.PaginationResponse - 15, // 11: gitpod.v1.UpdateConfigurationRequest.prebuild_settings:type_name -> gitpod.v1.UpdateConfigurationRequest.PrebuildSettings - 16, // 12: gitpod.v1.UpdateConfigurationRequest.workspace_settings:type_name -> gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings - 2, // 13: gitpod.v1.UpdateConfigurationResponse.configuration:type_name -> gitpod.v1.Configuration - 1, // 14: gitpod.v1.UpdateConfigurationRequest.PrebuildSettings.branch_strategy:type_name -> gitpod.v1.BranchMatchingStrategy - 0, // 15: gitpod.v1.UpdateConfigurationRequest.PrebuildSettings.trigger_strategy:type_name -> gitpod.v1.PrebuildTriggerStrategy - 5, // 16: gitpod.v1.ConfigurationService.CreateConfiguration:input_type -> gitpod.v1.CreateConfigurationRequest - 7, // 17: gitpod.v1.ConfigurationService.GetConfiguration:input_type -> gitpod.v1.GetConfigurationRequest - 9, // 18: gitpod.v1.ConfigurationService.ListConfigurations:input_type -> gitpod.v1.ListConfigurationsRequest - 11, // 19: gitpod.v1.ConfigurationService.UpdateConfiguration:input_type -> gitpod.v1.UpdateConfigurationRequest - 13, // 20: gitpod.v1.ConfigurationService.DeleteConfiguration:input_type -> gitpod.v1.DeleteConfigurationRequest - 6, // 21: gitpod.v1.ConfigurationService.CreateConfiguration:output_type -> gitpod.v1.CreateConfigurationResponse - 8, // 22: gitpod.v1.ConfigurationService.GetConfiguration:output_type -> gitpod.v1.GetConfigurationResponse - 10, // 23: gitpod.v1.ConfigurationService.ListConfigurations:output_type -> gitpod.v1.ListConfigurationsResponse - 12, // 24: gitpod.v1.ConfigurationService.UpdateConfiguration:output_type -> gitpod.v1.UpdateConfigurationResponse - 14, // 25: gitpod.v1.ConfigurationService.DeleteConfiguration:output_type -> gitpod.v1.DeleteConfigurationResponse - 21, // [21:26] is the sub-list for method output_type - 16, // [16:21] is the sub-list for method input_type - 16, // [16:16] is the sub-list for extension type_name - 16, // [16:16] is the sub-list for extension extendee - 0, // [0:16] is the sub-list for field type_name + 4, // 5: gitpod.v1.PrebuildSettings.clone_settings:type_name -> gitpod.v1.PrebuildCloneSettings + 2, // 6: gitpod.v1.CreateConfigurationResponse.configuration:type_name -> gitpod.v1.Configuration + 2, // 7: gitpod.v1.GetConfigurationResponse.configuration:type_name -> gitpod.v1.Configuration + 19, // 8: gitpod.v1.ListConfigurationsRequest.pagination:type_name -> gitpod.v1.PaginationRequest + 20, // 9: gitpod.v1.ListConfigurationsRequest.sort:type_name -> gitpod.v1.Sort + 2, // 10: gitpod.v1.ListConfigurationsResponse.configurations:type_name -> gitpod.v1.Configuration + 21, // 11: gitpod.v1.ListConfigurationsResponse.pagination:type_name -> gitpod.v1.PaginationResponse + 16, // 12: gitpod.v1.UpdateConfigurationRequest.prebuild_settings:type_name -> gitpod.v1.UpdateConfigurationRequest.PrebuildSettings + 17, // 13: gitpod.v1.UpdateConfigurationRequest.workspace_settings:type_name -> gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings + 2, // 14: gitpod.v1.UpdateConfigurationResponse.configuration:type_name -> gitpod.v1.Configuration + 1, // 15: gitpod.v1.UpdateConfigurationRequest.PrebuildSettings.branch_strategy:type_name -> gitpod.v1.BranchMatchingStrategy + 0, // 16: gitpod.v1.UpdateConfigurationRequest.PrebuildSettings.trigger_strategy:type_name -> gitpod.v1.PrebuildTriggerStrategy + 4, // 17: gitpod.v1.UpdateConfigurationRequest.PrebuildSettings.clone_settings:type_name -> gitpod.v1.PrebuildCloneSettings + 6, // 18: gitpod.v1.ConfigurationService.CreateConfiguration:input_type -> gitpod.v1.CreateConfigurationRequest + 8, // 19: gitpod.v1.ConfigurationService.GetConfiguration:input_type -> gitpod.v1.GetConfigurationRequest + 10, // 20: gitpod.v1.ConfigurationService.ListConfigurations:input_type -> gitpod.v1.ListConfigurationsRequest + 12, // 21: gitpod.v1.ConfigurationService.UpdateConfiguration:input_type -> gitpod.v1.UpdateConfigurationRequest + 14, // 22: gitpod.v1.ConfigurationService.DeleteConfiguration:input_type -> gitpod.v1.DeleteConfigurationRequest + 7, // 23: gitpod.v1.ConfigurationService.CreateConfiguration:output_type -> gitpod.v1.CreateConfigurationResponse + 9, // 24: gitpod.v1.ConfigurationService.GetConfiguration:output_type -> gitpod.v1.GetConfigurationResponse + 11, // 25: gitpod.v1.ConfigurationService.ListConfigurations:output_type -> gitpod.v1.ListConfigurationsResponse + 13, // 26: gitpod.v1.ConfigurationService.UpdateConfiguration:output_type -> gitpod.v1.UpdateConfigurationResponse + 15, // 27: gitpod.v1.ConfigurationService.DeleteConfiguration:output_type -> gitpod.v1.DeleteConfigurationResponse + 23, // [23:28] is the sub-list for method output_type + 18, // [18:23] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_gitpod_v1_configuration_proto_init() } @@ -1463,7 +1544,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceSettings); i { + switch v := v.(*PrebuildCloneSettings); i { case 0: return &v.state case 1: @@ -1475,7 +1556,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateConfigurationRequest); i { + switch v := v.(*WorkspaceSettings); i { case 0: return &v.state case 1: @@ -1487,7 +1568,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateConfigurationResponse); i { + switch v := v.(*CreateConfigurationRequest); i { case 0: return &v.state case 1: @@ -1499,7 +1580,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConfigurationRequest); i { + switch v := v.(*CreateConfigurationResponse); i { case 0: return &v.state case 1: @@ -1511,7 +1592,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConfigurationResponse); i { + switch v := v.(*GetConfigurationRequest); i { case 0: return &v.state case 1: @@ -1523,7 +1604,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListConfigurationsRequest); i { + switch v := v.(*GetConfigurationResponse); i { case 0: return &v.state case 1: @@ -1535,7 +1616,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListConfigurationsResponse); i { + switch v := v.(*ListConfigurationsRequest); i { case 0: return &v.state case 1: @@ -1547,7 +1628,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConfigurationRequest); i { + switch v := v.(*ListConfigurationsResponse); i { case 0: return &v.state case 1: @@ -1559,7 +1640,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConfigurationResponse); i { + switch v := v.(*UpdateConfigurationRequest); i { case 0: return &v.state case 1: @@ -1571,7 +1652,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteConfigurationRequest); i { + switch v := v.(*UpdateConfigurationResponse); i { case 0: return &v.state case 1: @@ -1583,7 +1664,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteConfigurationResponse); i { + switch v := v.(*DeleteConfigurationRequest); i { case 0: return &v.state case 1: @@ -1595,7 +1676,7 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConfigurationRequest_PrebuildSettings); i { + switch v := v.(*DeleteConfigurationResponse); i { case 0: return &v.state case 1: @@ -1607,6 +1688,18 @@ func file_gitpod_v1_configuration_proto_init() { } } file_gitpod_v1_configuration_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateConfigurationRequest_PrebuildSettings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_gitpod_v1_configuration_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateConfigurationRequest_WorkspaceSettings); i { case 0: return &v.state @@ -1619,17 +1712,17 @@ func file_gitpod_v1_configuration_proto_init() { } } } - file_gitpod_v1_configuration_proto_msgTypes[7].OneofWrappers = []interface{}{} - file_gitpod_v1_configuration_proto_msgTypes[9].OneofWrappers = []interface{}{} - file_gitpod_v1_configuration_proto_msgTypes[13].OneofWrappers = []interface{}{} + file_gitpod_v1_configuration_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_gitpod_v1_configuration_proto_msgTypes[10].OneofWrappers = []interface{}{} file_gitpod_v1_configuration_proto_msgTypes[14].OneofWrappers = []interface{}{} + file_gitpod_v1_configuration_proto_msgTypes[15].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_gitpod_v1_configuration_proto_rawDesc, NumEnums: 2, - NumMessages: 15, + NumMessages: 16, NumExtensions: 0, NumServices: 1, }, diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationOuterClass.java index cfe028d2510a57..dd8de146ceb866 100644 --- a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationOuterClass.java +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationOuterClass.java @@ -1920,6 +1920,21 @@ public interface PrebuildSettingsOrBuilder extends * @return The triggerStrategy. */ io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy getTriggerStrategy(); + + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return Whether the cloneSettings field is set. + */ + boolean hasCloneSettings(); + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return The cloneSettings. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getCloneSettings(); + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder getCloneSettingsOrBuilder(); } /** * Protobuf type {@code gitpod.v1.PrebuildSettings} @@ -1962,6 +1977,7 @@ private PrebuildSettings() { io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.Builder.class); } + private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** @@ -2098,6 +2114,32 @@ public java.lang.String getWorkspaceClass() { return result == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy.UNRECOGNIZED : result; } + public static final int CLONE_SETTINGS_FIELD_NUMBER = 7; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings cloneSettings_; + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return Whether the cloneSettings field is set. + */ + @java.lang.Override + public boolean hasCloneSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return The cloneSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getCloneSettings() { + return cloneSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance() : cloneSettings_; + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder getCloneSettingsOrBuilder() { + return cloneSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance() : cloneSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2130,6 +2172,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (triggerStrategy_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy.PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED.getNumber()) { output.writeEnum(6, triggerStrategy_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCloneSettings()); + } getUnknownFields().writeTo(output); } @@ -2161,6 +2206,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, triggerStrategy_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCloneSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2186,6 +2235,11 @@ public boolean equals(final java.lang.Object obj) { if (!getWorkspaceClass() .equals(other.getWorkspaceClass())) return false; if (triggerStrategy_ != other.triggerStrategy_) return false; + if (hasCloneSettings() != other.hasCloneSettings()) return false; + if (hasCloneSettings()) { + if (!getCloneSettings() + .equals(other.getCloneSettings())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2210,6 +2264,10 @@ public int hashCode() { hash = (53 * hash) + getWorkspaceClass().hashCode(); hash = (37 * hash) + TRIGGER_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + triggerStrategy_; + if (hasCloneSettings()) { + hash = (37 * hash) + CLONE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCloneSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2329,13 +2387,19 @@ public static final class Builder extends // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCloneSettingsFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -2347,6 +2411,11 @@ public Builder clear() { prebuildInterval_ = 0; workspaceClass_ = ""; triggerStrategy_ = 0; + cloneSettings_ = null; + if (cloneSettingsBuilder_ != null) { + cloneSettingsBuilder_.dispose(); + cloneSettingsBuilder_ = null; + } return this; } @@ -2398,6 +2467,14 @@ private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.Prebui if (((from_bitField0_ & 0x00000020) != 0)) { result.triggerStrategy_ = triggerStrategy_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.cloneSettings_ = cloneSettingsBuilder_ == null + ? cloneSettings_ + : cloneSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2434,6 +2511,9 @@ public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.Prebuild if (other.triggerStrategy_ != 0) { setTriggerStrategyValue(other.getTriggerStrategyValue()); } + if (other.hasCloneSettings()) { + mergeCloneSettings(other.getCloneSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2490,6 +2570,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: { + input.readMessage( + getCloneSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -2730,114 +2817,690 @@ public java.lang.String getWorkspaceClass() { return (com.google.protobuf.ByteString) ref; } } - /** - * string workspace_class = 5 [json_name = "workspaceClass"]; - * @param value The workspaceClass to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceClass( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - workspaceClass_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string workspace_class = 5 [json_name = "workspaceClass"]; - * @return This builder for chaining. - */ - public Builder clearWorkspaceClass() { - workspaceClass_ = getDefaultInstance().getWorkspaceClass(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int triggerStrategy_ = 0; + /** + * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; + * @return The enum numeric value on the wire for triggerStrategy. + */ + @java.lang.Override public int getTriggerStrategyValue() { + return triggerStrategy_; + } + /** + * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; + * @param value The enum numeric value on the wire for triggerStrategy to set. + * @return This builder for chaining. + */ + public Builder setTriggerStrategyValue(int value) { + triggerStrategy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; + * @return The triggerStrategy. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy getTriggerStrategy() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy result = io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy.forNumber(triggerStrategy_); + return result == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; + * @param value The triggerStrategy to set. + * @return This builder for chaining. + */ + public Builder setTriggerStrategy(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + triggerStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; + * @return This builder for chaining. + */ + public Builder clearTriggerStrategy() { + bitField0_ = (bitField0_ & ~0x00000020); + triggerStrategy_ = 0; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings cloneSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder> cloneSettingsBuilder_; + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return Whether the cloneSettings field is set. + */ + public boolean hasCloneSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return The cloneSettings. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getCloneSettings() { + if (cloneSettingsBuilder_ == null) { + return cloneSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance() : cloneSettings_; + } else { + return cloneSettingsBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public Builder setCloneSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings value) { + if (cloneSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloneSettings_ = value; + } else { + cloneSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public Builder setCloneSettings( + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder builderForValue) { + if (cloneSettingsBuilder_ == null) { + cloneSettings_ = builderForValue.build(); + } else { + cloneSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public Builder mergeCloneSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings value) { + if (cloneSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + cloneSettings_ != null && + cloneSettings_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance()) { + getCloneSettingsBuilder().mergeFrom(value); + } else { + cloneSettings_ = value; + } + } else { + cloneSettingsBuilder_.mergeFrom(value); + } + if (cloneSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public Builder clearCloneSettings() { + bitField0_ = (bitField0_ & ~0x00000040); + cloneSettings_ = null; + if (cloneSettingsBuilder_ != null) { + cloneSettingsBuilder_.dispose(); + cloneSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder getCloneSettingsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCloneSettingsFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder getCloneSettingsOrBuilder() { + if (cloneSettingsBuilder_ != null) { + return cloneSettingsBuilder_.getMessageOrBuilder(); + } else { + return cloneSettings_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance() : cloneSettings_; + } + } + /** + * .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder> + getCloneSettingsFieldBuilder() { + if (cloneSettingsBuilder_ == null) { + cloneSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder>( + getCloneSettings(), + getParentForChildren(), + isClean()); + cloneSettings_ = null; + } + return cloneSettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PrebuildSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PrebuildSettings) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuildSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildCloneSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PrebuildCloneSettings) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * full_clone determines if the entire repository should be cloned, instead of with `--depth=1`
+     * 
+ * + * bool full_clone = 1 [json_name = "fullClone"]; + * @return The fullClone. + */ + boolean getFullClone(); + } + /** + * Protobuf type {@code gitpod.v1.PrebuildCloneSettings} + */ + public static final class PrebuildCloneSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PrebuildCloneSettings) + PrebuildCloneSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + PrebuildCloneSettings.class.getName()); + } + // Use PrebuildCloneSettings.newBuilder() to construct. + private PrebuildCloneSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrebuildCloneSettings() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildCloneSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildCloneSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder.class); + } + + public static final int FULL_CLONE_FIELD_NUMBER = 1; + private boolean fullClone_ = false; + /** + *
+     * full_clone determines if the entire repository should be cloned, instead of with `--depth=1`
+     * 
+ * + * bool full_clone = 1 [json_name = "fullClone"]; + * @return The fullClone. + */ + @java.lang.Override + public boolean getFullClone() { + return fullClone_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (fullClone_ != false) { + output.writeBool(1, fullClone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fullClone_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, fullClone_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings) obj; + + if (getFullClone() + != other.getFullClone()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FULL_CLONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFullClone()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.PrebuildCloneSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PrebuildCloneSettings) + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildCloneSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildCloneSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fullClone_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildCloneSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fullClone_ = fullClone_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings)other); + } else { + super.mergeFrom(other); + return this; + } } - /** - * string workspace_class = 5 [json_name = "workspaceClass"]; - * @param value The bytes for workspaceClass to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceClassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - workspaceClass_ = value; - bitField0_ |= 0x00000010; + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance()) return this; + if (other.getFullClone() != false) { + setFullClone(other.getFullClone()); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - private int triggerStrategy_ = 0; - /** - * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; - * @return The enum numeric value on the wire for triggerStrategy. - */ - @java.lang.Override public int getTriggerStrategyValue() { - return triggerStrategy_; + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; - * @param value The enum numeric value on the wire for triggerStrategy to set. - * @return This builder for chaining. - */ - public Builder setTriggerStrategyValue(int value) { - triggerStrategy_ = value; - bitField0_ |= 0x00000020; - onChanged(); + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + fullClone_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + private int bitField0_; + + private boolean fullClone_ ; /** - * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; - * @return The triggerStrategy. + *
+       * full_clone determines if the entire repository should be cloned, instead of with `--depth=1`
+       * 
+ * + * bool full_clone = 1 [json_name = "fullClone"]; + * @return The fullClone. */ @java.lang.Override - public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy getTriggerStrategy() { - io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy result = io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy.forNumber(triggerStrategy_); - return result == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy.UNRECOGNIZED : result; + public boolean getFullClone() { + return fullClone_; } /** - * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; - * @param value The triggerStrategy to set. + *
+       * full_clone determines if the entire repository should be cloned, instead of with `--depth=1`
+       * 
+ * + * bool full_clone = 1 [json_name = "fullClone"]; + * @param value The fullClone to set. * @return This builder for chaining. */ - public Builder setTriggerStrategy(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - triggerStrategy_ = value.getNumber(); + public Builder setFullClone(boolean value) { + + fullClone_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * .gitpod.v1.PrebuildTriggerStrategy trigger_strategy = 6 [json_name = "triggerStrategy"]; + *
+       * full_clone determines if the entire repository should be cloned, instead of with `--depth=1`
+       * 
+ * + * bool full_clone = 1 [json_name = "fullClone"]; * @return This builder for chaining. */ - public Builder clearTriggerStrategy() { - bitField0_ = (bitField0_ & ~0x00000020); - triggerStrategy_ = 0; + public Builder clearFullClone() { + bitField0_ = (bitField0_ & ~0x00000001); + fullClone_ = false; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:gitpod.v1.PrebuildSettings) + // @@protoc_insertion_point(builder_scope:gitpod.v1.PrebuildCloneSettings) } - // @@protoc_insertion_point(class_scope:gitpod.v1.PrebuildSettings) - private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:gitpod.v1.PrebuildCloneSettings) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings(); + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings(); } - public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getDefaultInstance() { + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PrebuildSettings parsePartialFrom( + public PrebuildCloneSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2856,17 +3519,17 @@ public PrebuildSettings parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getDefaultInstanceForType() { + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -8897,6 +9560,21 @@ public interface PrebuildSettingsOrBuilder extends * @return The triggerStrategy. */ io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy getTriggerStrategy(); + + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return Whether the cloneSettings field is set. + */ + boolean hasCloneSettings(); + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return The cloneSettings. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getCloneSettings(); + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder getCloneSettingsOrBuilder(); } /** * Protobuf type {@code gitpod.v1.UpdateConfigurationRequest.PrebuildSettings} @@ -9122,6 +9800,32 @@ public java.lang.String getWorkspaceClass() { return result == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildTriggerStrategy.UNRECOGNIZED : result; } + public static final int CLONE_SETTINGS_FIELD_NUMBER = 7; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings cloneSettings_; + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return Whether the cloneSettings field is set. + */ + @java.lang.Override + public boolean hasCloneSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return The cloneSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getCloneSettings() { + return cloneSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance() : cloneSettings_; + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder getCloneSettingsOrBuilder() { + return cloneSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance() : cloneSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -9154,6 +9858,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000020) != 0)) { output.writeEnum(6, triggerStrategy_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getCloneSettings()); + } getUnknownFields().writeTo(output); } @@ -9185,6 +9892,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, triggerStrategy_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCloneSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -9228,6 +9939,11 @@ public boolean equals(final java.lang.Object obj) { if (hasTriggerStrategy()) { if (triggerStrategy_ != other.triggerStrategy_) return false; } + if (hasCloneSettings() != other.hasCloneSettings()) return false; + if (hasCloneSettings()) { + if (!getCloneSettings() + .equals(other.getCloneSettings())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9264,6 +9980,10 @@ public int hashCode() { hash = (37 * hash) + TRIGGER_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + triggerStrategy_; } + if (hasCloneSettings()) { + hash = (37 * hash) + CLONE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCloneSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -9383,13 +10103,19 @@ public static final class Builder extends // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCloneSettingsFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -9401,6 +10127,11 @@ public Builder clear() { prebuildInterval_ = 0; workspaceClass_ = ""; triggerStrategy_ = 0; + cloneSettings_ = null; + if (cloneSettingsBuilder_ != null) { + cloneSettingsBuilder_.dispose(); + cloneSettingsBuilder_ = null; + } return this; } @@ -9459,6 +10190,12 @@ private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.Update result.triggerStrategy_ = triggerStrategy_; to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.cloneSettings_ = cloneSettingsBuilder_ == null + ? cloneSettings_ + : cloneSettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -9496,6 +10233,9 @@ public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateCo if (other.hasTriggerStrategy()) { setTriggerStrategy(other.getTriggerStrategy()); } + if (other.hasCloneSettings()) { + mergeCloneSettings(other.getCloneSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -9552,6 +10292,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: { + input.readMessage( + getCloneSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -9927,6 +10674,127 @@ public Builder clearTriggerStrategy() { return this; } + private io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings cloneSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder> cloneSettingsBuilder_; + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return Whether the cloneSettings field is set. + */ + public boolean hasCloneSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + * @return The cloneSettings. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings getCloneSettings() { + if (cloneSettingsBuilder_ == null) { + return cloneSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance() : cloneSettings_; + } else { + return cloneSettingsBuilder_.getMessage(); + } + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public Builder setCloneSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings value) { + if (cloneSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloneSettings_ = value; + } else { + cloneSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public Builder setCloneSettings( + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder builderForValue) { + if (cloneSettingsBuilder_ == null) { + cloneSettings_ = builderForValue.build(); + } else { + cloneSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public Builder mergeCloneSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings value) { + if (cloneSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + cloneSettings_ != null && + cloneSettings_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance()) { + getCloneSettingsBuilder().mergeFrom(value); + } else { + cloneSettings_ = value; + } + } else { + cloneSettingsBuilder_.mergeFrom(value); + } + if (cloneSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public Builder clearCloneSettings() { + bitField0_ = (bitField0_ & ~0x00000040); + cloneSettings_ = null; + if (cloneSettingsBuilder_ != null) { + cloneSettingsBuilder_.dispose(); + cloneSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder getCloneSettingsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCloneSettingsFieldBuilder().getBuilder(); + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder getCloneSettingsOrBuilder() { + if (cloneSettingsBuilder_ != null) { + return cloneSettingsBuilder_.getMessageOrBuilder(); + } else { + return cloneSettings_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.getDefaultInstance() : cloneSettings_; + } + } + /** + * optional .gitpod.v1.PrebuildCloneSettings clone_settings = 7 [json_name = "cloneSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder> + getCloneSettingsFieldBuilder() { + if (cloneSettingsBuilder_ == null) { + cloneSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildCloneSettingsOrBuilder>( + getCloneSettings(), + getParentForChildren(), + isClean()); + cloneSettings_ = null; + } + return cloneSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateConfigurationRequest.PrebuildSettings) } @@ -13848,6 +14716,11 @@ public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRespons private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_gitpod_v1_PrebuildSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PrebuildCloneSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PrebuildCloneSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gitpod_v1_WorkspaceSettings_descriptor; private static final @@ -13933,7 +14806,7 @@ public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRespons "\021prebuild_settings\030\006 \001(\0132\033.gitpod.v1.Pre" + "buildSettingsR\020prebuildSettings\022K\n\022works" + "pace_settings\030\007 \001(\0132\034.gitpod.v1.Workspac" + - "eSettingsR\021workspaceSettings\"\325\002\n\020Prebuil" + + "eSettingsR\021workspaceSettings\"\236\003\n\020Prebuil" + "dSettings\022\030\n\007enabled\030\001 \001(\010R\007enabled\0226\n\027b" + "ranch_matching_pattern\030\002 \001(\tR\025branchMatc" + "hingPattern\022J\n\017branch_strategy\030\003 \001(\0162!.g" + @@ -13942,93 +14815,99 @@ public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRespons "uildInterval\022\'\n\017workspace_class\030\005 \001(\tR\016w" + "orkspaceClass\022M\n\020trigger_strategy\030\006 \001(\0162" + "\".gitpod.v1.PrebuildTriggerStrategyR\017tri" + - "ggerStrategy\"\266\001\n\021WorkspaceSettings\022\'\n\017wo" + - "rkspace_class\030\001 \001(\tR\016workspaceClass\022@\n\034r" + - "estricted_workspace_classes\030\002 \003(\tR\032restr" + - "ictedWorkspaceClasses\0226\n\027restricted_edit" + - "or_names\030\003 \003(\tR\025restrictedEditorNames\"v\n" + - "\032CreateConfigurationRequest\022\'\n\017organizat" + - "ion_id\030\001 \001(\tR\016organizationId\022\022\n\004name\030\002 \001" + - "(\tR\004name\022\033\n\tclone_url\030\003 \001(\tR\010cloneUrl\"]\n" + - "\033CreateConfigurationResponse\022>\n\rconfigur" + - "ation\030\001 \001(\0132\030.gitpod.v1.ConfigurationR\rc" + - "onfiguration\"D\n\027GetConfigurationRequest\022" + - ")\n\020configuration_id\030\001 \001(\tR\017configuration" + - "Id\"Z\n\030GetConfigurationResponse\022>\n\rconfig" + - "uration\030\001 \001(\0132\030.gitpod.v1.ConfigurationR" + - "\rconfiguration\"\220\002\n\031ListConfigurationsReq" + - "uest\022\'\n\017organization_id\030\001 \001(\tR\016organizat" + - "ionId\022\037\n\013search_term\030\002 \001(\tR\nsearchTerm\022<" + - "\n\npagination\030\003 \001(\0132\034.gitpod.v1.Paginatio" + - "nRequestR\npagination\022#\n\004sort\030\004 \003(\0132\017.git" + - "pod.v1.SortR\004sort\0220\n\021prebuilds_enabled\030\005" + - " \001(\010H\000R\020prebuildsEnabled\210\001\001B\024\n\022_prebuild" + - "s_enabled\"\235\001\n\032ListConfigurationsResponse" + - "\022@\n\016configurations\030\001 \003(\0132\030.gitpod.v1.Con" + - "figurationR\016configurations\022=\n\npagination" + - "\030\002 \001(\0132\035.gitpod.v1.PaginationResponseR\np" + - "agination\"\231\n\n\032UpdateConfigurationRequest" + - "\022)\n\020configuration_id\030\001 \001(\tR\017configuratio" + - "nId\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001\001\022h\n\021prebuild" + - "_settings\030\003 \001(\01326.gitpod.v1.UpdateConfig" + - "urationRequest.PrebuildSettingsH\001R\020prebu" + - "ildSettings\210\001\001\022k\n\022workspace_settings\030\004 \001" + - "(\01327.gitpod.v1.UpdateConfigurationReques" + - "t.WorkspaceSettingsH\002R\021workspaceSettings" + - "\210\001\001\032\356\003\n\020PrebuildSettings\022\035\n\007enabled\030\001 \001(" + - "\010H\000R\007enabled\210\001\001\022;\n\027branch_matching_patte" + - "rn\030\002 \001(\tH\001R\025branchMatchingPattern\210\001\001\022O\n\017" + - "branch_strategy\030\003 \001(\0162!.gitpod.v1.Branch" + - "MatchingStrategyH\002R\016branchStrategy\210\001\001\0220\n" + - "\021prebuild_interval\030\004 \001(\005H\003R\020prebuildInte" + - "rval\210\001\001\022,\n\017workspace_class\030\005 \001(\tH\004R\016work" + - "spaceClass\210\001\001\022R\n\020trigger_strategy\030\006 \001(\0162" + - "\".gitpod.v1.PrebuildTriggerStrategyH\005R\017t" + - "riggerStrategy\210\001\001B\n\n\010_enabledB\032\n\030_branch" + - "_matching_patternB\022\n\020_branch_strategyB\024\n" + - "\022_prebuild_intervalB\022\n\020_workspace_classB" + - "\023\n\021_trigger_strategy\032\270\003\n\021WorkspaceSettin" + - "gs\022,\n\017workspace_class\030\001 \001(\tH\000R\016workspace" + - "Class\210\001\001\022@\n\034restricted_workspace_classes" + - "\030\002 \003(\tR\032restrictedWorkspaceClasses\022R\n#up" + - "date_restricted_workspace_classes\030\003 \001(\010H" + - "\001R updateRestrictedWorkspaceClasses\210\001\001\0226" + - "\n\027restricted_editor_names\030\004 \003(\tR\025restric" + - "tedEditorNames\022H\n\036update_restricted_edit" + - "or_names\030\005 \001(\010H\002R\033updateRestrictedEditor" + - "Names\210\001\001B\022\n\020_workspace_classB&\n$_update_" + - "restricted_workspace_classesB!\n\037_update_" + - "restricted_editor_namesB\007\n\005_nameB\024\n\022_pre" + - "build_settingsB\025\n\023_workspace_settings\"]\n" + - "\033UpdateConfigurationResponse\022>\n\rconfigur" + - "ation\030\001 \001(\0132\030.gitpod.v1.ConfigurationR\rc" + - "onfiguration\"G\n\032DeleteConfigurationReque" + - "st\022)\n\020configuration_id\030\001 \001(\tR\017configurat" + - "ionId\"\035\n\033DeleteConfigurationResponse*r\n\027" + - "PrebuildTriggerStrategy\022)\n%PREBUILD_TRIG" + - "GER_STRATEGY_UNSPECIFIED\020\000\022,\n(PREBUILD_T" + - "RIGGER_STRATEGY_ACTIVITY_BASED\020\001*\311\001\n\026Bra" + - "nchMatchingStrategy\022(\n$BRANCH_MATCHING_S" + - "TRATEGY_UNSPECIFIED\020\000\022+\n\'BRANCH_MATCHING" + - "_STRATEGY_DEFAULT_BRANCH\020\001\022)\n%BRANCH_MAT" + - "CHING_STRATEGY_ALL_BRANCHES\020\002\022-\n)BRANCH_" + - "MATCHING_STRATEGY_MATCHED_BRANCHES\020\0032\222\004\n" + - "\024ConfigurationService\022f\n\023CreateConfigura" + - "tion\022%.gitpod.v1.CreateConfigurationRequ" + - "est\032&.gitpod.v1.CreateConfigurationRespo" + - "nse\"\000\022]\n\020GetConfiguration\022\".gitpod.v1.Ge" + - "tConfigurationRequest\032#.gitpod.v1.GetCon" + - "figurationResponse\"\000\022c\n\022ListConfiguratio" + - "ns\022$.gitpod.v1.ListConfigurationsRequest" + - "\032%.gitpod.v1.ListConfigurationsResponse\"" + - "\000\022f\n\023UpdateConfiguration\022%.gitpod.v1.Upd" + - "ateConfigurationRequest\032&.gitpod.v1.Upda" + - "teConfigurationResponse\"\000\022f\n\023DeleteConfi" + - "guration\022%.gitpod.v1.DeleteConfiguration" + - "Request\032&.gitpod.v1.DeleteConfigurationR" + - "esponse\"\000BQ\n\026io.gitpod.publicapi.v1Z7git" + - "hub.com/gitpod-io/gitpod/components/publ" + - "ic-api/go/v1b\006proto3" + "ggerStrategy\022G\n\016clone_settings\030\007 \001(\0132 .g" + + "itpod.v1.PrebuildCloneSettingsR\rcloneSet" + + "tings\"6\n\025PrebuildCloneSettings\022\035\n\nfull_c" + + "lone\030\001 \001(\010R\tfullClone\"\266\001\n\021WorkspaceSetti" + + "ngs\022\'\n\017workspace_class\030\001 \001(\tR\016workspaceC" + + "lass\022@\n\034restricted_workspace_classes\030\002 \003" + + "(\tR\032restrictedWorkspaceClasses\0226\n\027restri" + + "cted_editor_names\030\003 \003(\tR\025restrictedEdito" + + "rNames\"v\n\032CreateConfigurationRequest\022\'\n\017" + + "organization_id\030\001 \001(\tR\016organizationId\022\022\n" + + "\004name\030\002 \001(\tR\004name\022\033\n\tclone_url\030\003 \001(\tR\010cl" + + "oneUrl\"]\n\033CreateConfigurationResponse\022>\n" + + "\rconfiguration\030\001 \001(\0132\030.gitpod.v1.Configu" + + "rationR\rconfiguration\"D\n\027GetConfiguratio" + + "nRequest\022)\n\020configuration_id\030\001 \001(\tR\017conf" + + "igurationId\"Z\n\030GetConfigurationResponse\022" + + ">\n\rconfiguration\030\001 \001(\0132\030.gitpod.v1.Confi" + + "gurationR\rconfiguration\"\220\002\n\031ListConfigur" + + "ationsRequest\022\'\n\017organization_id\030\001 \001(\tR\016" + + "organizationId\022\037\n\013search_term\030\002 \001(\tR\nsea" + + "rchTerm\022<\n\npagination\030\003 \001(\0132\034.gitpod.v1." + + "PaginationRequestR\npagination\022#\n\004sort\030\004 " + + "\003(\0132\017.gitpod.v1.SortR\004sort\0220\n\021prebuilds_" + + "enabled\030\005 \001(\010H\000R\020prebuildsEnabled\210\001\001B\024\n\022" + + "_prebuilds_enabled\"\235\001\n\032ListConfiguration" + + "sResponse\022@\n\016configurations\030\001 \003(\0132\030.gitp" + + "od.v1.ConfigurationR\016configurations\022=\n\np" + + "agination\030\002 \001(\0132\035.gitpod.v1.PaginationRe" + + "sponseR\npagination\"\372\n\n\032UpdateConfigurati" + + "onRequest\022)\n\020configuration_id\030\001 \001(\tR\017con" + + "figurationId\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001\001\022h\n" + + "\021prebuild_settings\030\003 \001(\01326.gitpod.v1.Upd" + + "ateConfigurationRequest.PrebuildSettings" + + "H\001R\020prebuildSettings\210\001\001\022k\n\022workspace_set" + + "tings\030\004 \001(\01327.gitpod.v1.UpdateConfigurat" + + "ionRequest.WorkspaceSettingsH\002R\021workspac" + + "eSettings\210\001\001\032\317\004\n\020PrebuildSettings\022\035\n\007ena" + + "bled\030\001 \001(\010H\000R\007enabled\210\001\001\022;\n\027branch_match" + + "ing_pattern\030\002 \001(\tH\001R\025branchMatchingPatte" + + "rn\210\001\001\022O\n\017branch_strategy\030\003 \001(\0162!.gitpod." + + "v1.BranchMatchingStrategyH\002R\016branchStrat" + + "egy\210\001\001\0220\n\021prebuild_interval\030\004 \001(\005H\003R\020pre" + + "buildInterval\210\001\001\022,\n\017workspace_class\030\005 \001(" + + "\tH\004R\016workspaceClass\210\001\001\022R\n\020trigger_strate" + + "gy\030\006 \001(\0162\".gitpod.v1.PrebuildTriggerStra" + + "tegyH\005R\017triggerStrategy\210\001\001\022L\n\016clone_sett" + + "ings\030\007 \001(\0132 .gitpod.v1.PrebuildCloneSett" + + "ingsH\006R\rcloneSettings\210\001\001B\n\n\010_enabledB\032\n\030" + + "_branch_matching_patternB\022\n\020_branch_stra" + + "tegyB\024\n\022_prebuild_intervalB\022\n\020_workspace" + + "_classB\023\n\021_trigger_strategyB\021\n\017_clone_se" + + "ttings\032\270\003\n\021WorkspaceSettings\022,\n\017workspac" + + "e_class\030\001 \001(\tH\000R\016workspaceClass\210\001\001\022@\n\034re" + + "stricted_workspace_classes\030\002 \003(\tR\032restri" + + "ctedWorkspaceClasses\022R\n#update_restricte" + + "d_workspace_classes\030\003 \001(\010H\001R updateRestr" + + "ictedWorkspaceClasses\210\001\001\0226\n\027restricted_e" + + "ditor_names\030\004 \003(\tR\025restrictedEditorNames" + + "\022H\n\036update_restricted_editor_names\030\005 \001(\010" + + "H\002R\033updateRestrictedEditorNames\210\001\001B\022\n\020_w" + + "orkspace_classB&\n$_update_restricted_wor" + + "kspace_classesB!\n\037_update_restricted_edi" + + "tor_namesB\007\n\005_nameB\024\n\022_prebuild_settings" + + "B\025\n\023_workspace_settings\"]\n\033UpdateConfigu" + + "rationResponse\022>\n\rconfiguration\030\001 \001(\0132\030." + + "gitpod.v1.ConfigurationR\rconfiguration\"G" + + "\n\032DeleteConfigurationRequest\022)\n\020configur" + + "ation_id\030\001 \001(\tR\017configurationId\"\035\n\033Delet" + + "eConfigurationResponse*r\n\027PrebuildTrigge" + + "rStrategy\022)\n%PREBUILD_TRIGGER_STRATEGY_U" + + "NSPECIFIED\020\000\022,\n(PREBUILD_TRIGGER_STRATEG" + + "Y_ACTIVITY_BASED\020\001*\311\001\n\026BranchMatchingStr" + + "ategy\022(\n$BRANCH_MATCHING_STRATEGY_UNSPEC" + + "IFIED\020\000\022+\n\'BRANCH_MATCHING_STRATEGY_DEFA" + + "ULT_BRANCH\020\001\022)\n%BRANCH_MATCHING_STRATEGY" + + "_ALL_BRANCHES\020\002\022-\n)BRANCH_MATCHING_STRAT" + + "EGY_MATCHED_BRANCHES\020\0032\222\004\n\024Configuration" + + "Service\022f\n\023CreateConfiguration\022%.gitpod." + + "v1.CreateConfigurationRequest\032&.gitpod.v" + + "1.CreateConfigurationResponse\"\000\022]\n\020GetCo" + + "nfiguration\022\".gitpod.v1.GetConfiguration" + + "Request\032#.gitpod.v1.GetConfigurationResp" + + "onse\"\000\022c\n\022ListConfigurations\022$.gitpod.v1" + + ".ListConfigurationsRequest\032%.gitpod.v1.L" + + "istConfigurationsResponse\"\000\022f\n\023UpdateCon" + + "figuration\022%.gitpod.v1.UpdateConfigurati" + + "onRequest\032&.gitpod.v1.UpdateConfiguratio" + + "nResponse\"\000\022f\n\023DeleteConfiguration\022%.git" + + "pod.v1.DeleteConfigurationRequest\032&.gitp" + + "od.v1.DeleteConfigurationResponse\"\000BQ\n\026i" + + "o.gitpod.publicapi.v1Z7github.com/gitpod" + + "-io/gitpod/components/public-api/go/v1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -14048,51 +14927,57 @@ public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRespons internal_static_gitpod_v1_PrebuildSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_PrebuildSettings_descriptor, - new java.lang.String[] { "Enabled", "BranchMatchingPattern", "BranchStrategy", "PrebuildInterval", "WorkspaceClass", "TriggerStrategy", }); - internal_static_gitpod_v1_WorkspaceSettings_descriptor = + new java.lang.String[] { "Enabled", "BranchMatchingPattern", "BranchStrategy", "PrebuildInterval", "WorkspaceClass", "TriggerStrategy", "CloneSettings", }); + internal_static_gitpod_v1_PrebuildCloneSettings_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_PrebuildCloneSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PrebuildCloneSettings_descriptor, + new java.lang.String[] { "FullClone", }); + internal_static_gitpod_v1_WorkspaceSettings_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_gitpod_v1_WorkspaceSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_WorkspaceSettings_descriptor, new java.lang.String[] { "WorkspaceClass", "RestrictedWorkspaceClasses", "RestrictedEditorNames", }); internal_static_gitpod_v1_CreateConfigurationRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_gitpod_v1_CreateConfigurationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_CreateConfigurationRequest_descriptor, new java.lang.String[] { "OrganizationId", "Name", "CloneUrl", }); internal_static_gitpod_v1_CreateConfigurationResponse_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_gitpod_v1_CreateConfigurationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_CreateConfigurationResponse_descriptor, new java.lang.String[] { "Configuration", }); internal_static_gitpod_v1_GetConfigurationRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_gitpod_v1_GetConfigurationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_GetConfigurationRequest_descriptor, new java.lang.String[] { "ConfigurationId", }); internal_static_gitpod_v1_GetConfigurationResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_gitpod_v1_GetConfigurationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_GetConfigurationResponse_descriptor, new java.lang.String[] { "Configuration", }); internal_static_gitpod_v1_ListConfigurationsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_gitpod_v1_ListConfigurationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_ListConfigurationsRequest_descriptor, new java.lang.String[] { "OrganizationId", "SearchTerm", "Pagination", "Sort", "PrebuildsEnabled", }); internal_static_gitpod_v1_ListConfigurationsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_gitpod_v1_ListConfigurationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_ListConfigurationsResponse_descriptor, new java.lang.String[] { "Configurations", "Pagination", }); internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_gitpod_v1_UpdateConfigurationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor, @@ -14102,7 +14987,7 @@ public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRespons internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_descriptor, - new java.lang.String[] { "Enabled", "BranchMatchingPattern", "BranchStrategy", "PrebuildInterval", "WorkspaceClass", "TriggerStrategy", }); + new java.lang.String[] { "Enabled", "BranchMatchingPattern", "BranchStrategy", "PrebuildInterval", "WorkspaceClass", "TriggerStrategy", "CloneSettings", }); internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_descriptor = internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor.getNestedTypes().get(1); internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_fieldAccessorTable = new @@ -14110,19 +14995,19 @@ public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRespons internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_descriptor, new java.lang.String[] { "WorkspaceClass", "RestrictedWorkspaceClasses", "UpdateRestrictedWorkspaceClasses", "RestrictedEditorNames", "UpdateRestrictedEditorNames", }); internal_static_gitpod_v1_UpdateConfigurationResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_gitpod_v1_UpdateConfigurationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_UpdateConfigurationResponse_descriptor, new java.lang.String[] { "Configuration", }); internal_static_gitpod_v1_DeleteConfigurationRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_gitpod_v1_DeleteConfigurationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_DeleteConfigurationRequest_descriptor, new java.lang.String[] { "ConfigurationId", }); internal_static_gitpod_v1_DeleteConfigurationResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_gitpod_v1_DeleteConfigurationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_v1_DeleteConfigurationResponse_descriptor, diff --git a/components/public-api/typescript-common/fixtures/fromPartialConfiguration_2.golden b/components/public-api/typescript-common/fixtures/fromPartialConfiguration_2.golden index 3fb8147f10fd2c..cef308b94aee0e 100644 --- a/components/public-api/typescript-common/fixtures/fromPartialConfiguration_2.golden +++ b/components/public-api/typescript-common/fixtures/fromPartialConfiguration_2.golden @@ -4,7 +4,10 @@ "settings": { "prebuilds": { "enable": true, - "prebuildInterval": 5 + "prebuildInterval": 5, + "cloneSettings": { + "fullClone": false + } }, "workspaceClasses": { "regular": "huge" diff --git a/components/public-api/typescript-common/fixtures/fromPartialConfiguration_3.golden b/components/public-api/typescript-common/fixtures/fromPartialConfiguration_3.golden index ebfa6640322ab7..71bc1c2ad81185 100644 --- a/components/public-api/typescript-common/fixtures/fromPartialConfiguration_3.golden +++ b/components/public-api/typescript-common/fixtures/fromPartialConfiguration_3.golden @@ -4,7 +4,10 @@ "settings": { "prebuilds": { "enable": true, - "prebuildInterval": 5 + "prebuildInterval": 5, + "cloneSettings": { + "fullClone": false + } }, "workspaceClasses": { "regular": "huge" diff --git a/components/public-api/typescript-common/fixtures/toConfiguration_1.golden b/components/public-api/typescript-common/fixtures/toConfiguration_1.golden index 44197c331553a0..218172db6c93fc 100644 --- a/components/public-api/typescript-common/fixtures/toConfiguration_1.golden +++ b/components/public-api/typescript-common/fixtures/toConfiguration_1.golden @@ -11,7 +11,10 @@ "branchStrategy": "BRANCH_MATCHING_STRATEGY_DEFAULT_BRANCH", "prebuildInterval": 20, "workspaceClass": "dev", - "triggerStrategy": "PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED" + "triggerStrategy": "PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED", + "cloneSettings": { + "fullClone": false + } }, "workspaceSettings": { "workspaceClass": "dev", diff --git a/components/public-api/typescript-common/fixtures/toConfiguration_2.golden b/components/public-api/typescript-common/fixtures/toConfiguration_2.golden index e008d38796f5d5..2bba61b089846c 100644 --- a/components/public-api/typescript-common/fixtures/toConfiguration_2.golden +++ b/components/public-api/typescript-common/fixtures/toConfiguration_2.golden @@ -11,7 +11,10 @@ "branchStrategy": "BRANCH_MATCHING_STRATEGY_DEFAULT_BRANCH", "prebuildInterval": 20, "workspaceClass": "dev", - "triggerStrategy": "PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED" + "triggerStrategy": "PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED", + "cloneSettings": { + "fullClone": false + } }, "workspaceSettings": { "workspaceClass": "dev", diff --git a/components/public-api/typescript-common/fixtures/toPrebuildSettings_1.golden b/components/public-api/typescript-common/fixtures/toPrebuildSettings_1.golden index 3c82836b3bb20c..e310711f3dd97d 100644 --- a/components/public-api/typescript-common/fixtures/toPrebuildSettings_1.golden +++ b/components/public-api/typescript-common/fixtures/toPrebuildSettings_1.golden @@ -5,7 +5,10 @@ "branchStrategy": "BRANCH_MATCHING_STRATEGY_DEFAULT_BRANCH", "prebuildInterval": 42, "workspaceClass": "dev", - "triggerStrategy": "PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED" + "triggerStrategy": "PREBUILD_TRIGGER_STRATEGY_UNSPECIFIED", + "cloneSettings": { + "fullClone": false + } }, "err": "" } diff --git a/components/public-api/typescript-common/src/public-api-converter.ts b/components/public-api/typescript-common/src/public-api-converter.ts index 76a3d4587c605e..918f3534e7e915 100644 --- a/components/public-api/typescript-common/src/public-api-converter.ts +++ b/components/public-api/typescript-common/src/public-api-converter.ts @@ -77,6 +77,7 @@ import { PrebuildTriggerStrategy, PrebuildSettings, WorkspaceSettings, + PrebuildCloneSettings, } from "@gitpod/public-api/lib/gitpod/v1/configuration_pb"; import { EditorReference } from "@gitpod/public-api/lib/gitpod/v1/editor_pb"; import { @@ -996,6 +997,7 @@ export class PublicAPIConverter { result.branchStrategy = this.fromBranchMatchingStrategy(prebuilds.branchStrategy); result.prebuildInterval = prebuilds.prebuildInterval; result.workspaceClass = prebuilds.workspaceClass; + result.cloneSettings = this.fromPrebuildCloneSettings(prebuilds.cloneSettings); } return result; } @@ -1076,6 +1078,7 @@ export class PublicAPIConverter { result.prebuildInterval = prebuilds.prebuildInterval ?? 20; result.workspaceClass = prebuilds.workspaceClass ?? ""; result.triggerStrategy = this.toPrebuildTriggerStrategy(prebuilds.triggerStrategy); + result.cloneSettings = this.toPrebuildCloneSettings(prebuilds.cloneSettings); } return result; } @@ -1103,6 +1106,18 @@ export class PublicAPIConverter { } } + fromPrebuildCloneSettings(settings?: DeepPartial): PrebuildSettingsProtocol.CloneSettings { + return { + fullClone: settings?.fullClone ?? false, + }; + } + + toPrebuildCloneSettings(settings?: PrebuildSettingsProtocol.CloneSettings): PrebuildCloneSettings { + return new PrebuildCloneSettings({ + fullClone: settings?.fullClone ?? false, + }); + } + toWorkspaceSettings(projectSettings: ProjectSettings | undefined): WorkspaceSettings { const result = new WorkspaceSettings(); if (projectSettings?.workspaceClasses?.regular) { diff --git a/components/public-api/typescript/src/gitpod/v1/configuration_pb.ts b/components/public-api/typescript/src/gitpod/v1/configuration_pb.ts index d7b861556386f9..1e4fd811bc8bf5 100644 --- a/components/public-api/typescript/src/gitpod/v1/configuration_pb.ts +++ b/components/public-api/typescript/src/gitpod/v1/configuration_pb.ts @@ -177,6 +177,11 @@ export class PrebuildSettings extends Message { */ triggerStrategy = PrebuildTriggerStrategy.UNSPECIFIED; + /** + * @generated from field: gitpod.v1.PrebuildCloneSettings clone_settings = 7; + */ + cloneSettings?: PrebuildCloneSettings; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -191,6 +196,7 @@ export class PrebuildSettings extends Message { { no: 4, name: "prebuild_interval", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 5, name: "workspace_class", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "trigger_strategy", kind: "enum", T: proto3.getEnumType(PrebuildTriggerStrategy) }, + { no: 7, name: "clone_settings", kind: "message", T: PrebuildCloneSettings }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PrebuildSettings { @@ -210,6 +216,45 @@ export class PrebuildSettings extends Message { } } +/** + * @generated from message gitpod.v1.PrebuildCloneSettings + */ +export class PrebuildCloneSettings extends Message { + /** + * full_clone determines if the entire repository should be cloned, instead of with `--depth=1` + * + * @generated from field: bool full_clone = 1; + */ + fullClone = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gitpod.v1.PrebuildCloneSettings"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "full_clone", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PrebuildCloneSettings { + return new PrebuildCloneSettings().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PrebuildCloneSettings { + return new PrebuildCloneSettings().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PrebuildCloneSettings { + return new PrebuildCloneSettings().fromJsonString(jsonString, options); + } + + static equals(a: PrebuildCloneSettings | PlainMessage | undefined, b: PrebuildCloneSettings | PlainMessage | undefined): boolean { + return proto3.util.equals(PrebuildCloneSettings, a, b); + } +} + /** * @generated from message gitpod.v1.WorkspaceSettings */ @@ -616,6 +661,11 @@ export class UpdateConfigurationRequest_PrebuildSettings extends Message) { super(); proto3.util.initPartial(data, this); @@ -630,6 +680,7 @@ export class UpdateConfigurationRequest_PrebuildSettings extends Message): UpdateConfigurationRequest_PrebuildSettings { diff --git a/components/server/src/workspace/workspace-starter.ts b/components/server/src/workspace/workspace-starter.ts index 0599398e608795..83bc9b6cdeb2de 100644 --- a/components/server/src/workspace/workspace-starter.ts +++ b/components/server/src/workspace/workspace-starter.ts @@ -138,6 +138,7 @@ import { ApplicationError, ErrorCodes } from "@gitpod/gitpod-protocol/lib/messag import { IDESettingsVersion } from "@gitpod/gitpod-protocol/lib/ide-protocol"; import { getFeatureFlagEnableExperimentalJBTB } from "../util/featureflags"; import { OrganizationService } from "../orgs/organization-service"; +import { ProjectsService } from "../projects/projects-service"; export interface StartWorkspaceOptions extends Omit { excludeFeatureFlags?: NamedWorkspaceFeatureFlag[]; @@ -233,6 +234,7 @@ export class WorkspaceStarter { @inject(RedisPublisher) private readonly publisher: RedisPublisher, @inject(EnvVarService) private readonly envVarService: EnvVarService, @inject(OrganizationService) private readonly orgService: OrganizationService, + @inject(ProjectsService) private readonly projectService: ProjectsService, ) {} public async startWorkspace( @@ -1882,6 +1884,23 @@ export class WorkspaceStarter { } const result = new GitInitializer(); + // Full clone repository for prebuild workspaces + if (workspace.type === "prebuild" && workspace.projectId) { + const isEnabledPrebuildFullClone = await getExperimentsClientForBackend().getValueAsync( + "enabled_configuration_prebuild_full_clone", + false, + {}, + ); + if (isEnabledPrebuildFullClone) { + const project = await this.projectService.getProject(user.id, workspace.projectId).catch((err) => { + log.error("failed to get project", err); + return undefined; + }); + if (project && project.settings?.prebuilds?.cloneSettings?.fullClone) { + result.setFullClone(true); + } + } + } result.setConfig(gitConfig); result.setCheckoutLocation(context.checkoutLocation || context.repository.name); if (!!cloneTarget) { diff --git a/components/supervisor/pkg/supervisor/supervisor.go b/components/supervisor/pkg/supervisor/supervisor.go index c2b35665b9c460..77320943313f92 100644 --- a/components/supervisor/pkg/supervisor/supervisor.go +++ b/components/supervisor/pkg/supervisor/supervisor.go @@ -490,7 +490,7 @@ func Run(options ...RunOption) { start := time.Now() defer func() { - log.Debugf("unshallow of local repository took %v", time.Since(start)) + log.WithField("duration", time.Since(start).String()).Debugf("unshallow of local repository took %v", time.Since(start)) }() if !isShallowRepository(repoRoot) {